Simple Question (Direct)
Simple Question
Q16337669
P21
Q290
USER
Which sex does Josafá Braga dos Santos possess ?
(Q16337669,P21,c(Q290))
action filter_type
action find
entity Q16337669
relation P21
type Q290
['Q16337669', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q16337669 property:P21 ?c . ?c rdf:type ontology:Q290 }
Josafá Braga dos Santos
action filter_type
action find
entity Josafá Braga dos Santos
relation gender
type sex
['Josafá Braga dos Santos', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Josafá_Braga_dos_Santos property:gender ?c . ?c rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q16337669,P21,c(Q290))
action filter_type
action find
entity Q16337669
relation P21
type Q290
Josafá Braga dos Santos possesses un [ANSWER]
['Q16337669', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q16337669 property:P21 ?c . ?c rdf:type ontology:Q290 }
male
Josafá Braga dos Santos possesses un male
male
action filter_type
action find
entity Josafá Braga dos Santos
relation gender
type sex
['Josafá Braga dos Santos', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Josafá_Braga_dos_Santos property:gender ?c . ?c rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q16030545
P21
Q502895
USER
Does Thomas Albion Alderson have the gender as that sex ?
(Q16030545,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q16030545
relation P21
['Q16030545', 'P21', 'Q6581097']
ASK WHERE { resource:Q16030545 property:P21 resource:Q6581097 }
male Thomas Albion Alderson
action is_in
entity male
action find
entity Thomas Albion Alderson
relation gender
['Thomas Albion Alderson', 'gender', 'male']
ASK WHERE { resource:Thomas_Albion_Alderson property:gender resource:male }
[]
common name
SYSTEM
YES
(Q16030545,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q16030545
relation P21
[ANSWER]
['Q16030545', 'P21', 'Q6581097']
ASK WHERE { resource:Q16030545 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Thomas Albion Alderson
relation gender
['Thomas Albion Alderson', 'gender', 'male']
ASK WHERE { resource:Thomas_Albion_Alderson property:gender resource:male }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q16337669 Q937857
P106
Q12737077
USER
Is association football player the profession of Josafá Braga dos Santos ?
(Q16337669,P106,Q937857)
action is_in
entity Q937857
action find
entity Q16337669
relation P106
['Q16337669', 'P106', 'Q937857']
ASK WHERE { resource:Q16337669 property:P106 resource:Q937857 }
Josafá Braga dos Santos association football player
action is_in
entity association football player
action find
entity Josafá Braga dos Santos
relation occupation
['Josafá Braga dos Santos', 'occupation', 'association football player']
ASK WHERE { resource:Josafá_Braga_dos_Santos property:occupation resource:association_football_player }
[]
occupation
SYSTEM
YES
(Q16337669,P106,Q937857)
action is_in
entity Q937857
action find
entity Q16337669
relation P106
[ANSWER]
['Q16337669', 'P106', 'Q937857']
ASK WHERE { resource:Q16337669 property:P106 resource:Q937857 }
Yes
action is_in
entity association football player
action find
entity Josafá Braga dos Santos
relation occupation
['Josafá Braga dos Santos', 'occupation', 'association football player']
ASK WHERE { resource:Josafá_Braga_dos_Santos property:occupation resource:association_football_player }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16337669
P641
Q349
USER
What did that person participate in ?
action filter_type
action find
entity Q16337669
relation P641
type Q349
SELECT DISTINCT ?v WHERE { resource:Q16337669 property:P641 ?v . ?v rdf:type ontology:Q349 }
Josafá Braga dos Santos
action filter_type
action find
entity Josafá Braga dos Santos
relation sport
type sport
SELECT DISTINCT ?v WHERE { resource:Josafá_Braga_dos_Santos property:sport ?v . ?v rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
action filter_type
action find
entity Q16337669
relation P641
type Q349
That person participated in [ANSWER]
SELECT DISTINCT ?v WHERE { resource:Q16337669 property:P641 ?v . ?v rdf:type ontology:Q349 }
association football
That person participated in association football
association football
action filter_type
action find
entity Josafá Braga dos Santos
relation sport
type sport
SELECT DISTINCT ?v WHERE { resource:Josafá_Braga_dos_Santos property:sport ?v . ?v rdf:type ontology:sport }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q2736 Q15999287
P641
Q502895
USER
Is Joe Cooper involved in playing that sport ?
(Q15999287,P641,Q2736)
action is_in
entity Q2736
action find
entity Q15999287
relation P641
['Q15999287', 'P641', 'Q2736']
ASK WHERE { resource:Q15999287 property:P641 resource:Q2736 }
association football Joe Cooper
action is_in
entity association football
action find
entity Joe Cooper
relation sport
['Joe Cooper', 'sport', 'association football']
ASK WHERE { resource:Joe_Cooper property:sport resource:association_football }
[]
common name
SYSTEM
YES
(Q15999287,P641,Q2736)
action is_in
entity Q2736
action find
entity Q15999287
relation P641
[ANSWER]
['Q15999287', 'P641', 'Q2736']
ASK WHERE { resource:Q15999287 property:P641 resource:Q2736 }
Yes
action is_in
entity association football
action find
entity Joe Cooper
relation sport
['Joe Cooper', 'sport', 'association football']
ASK WHERE { resource:Joe_Cooper property:sport resource:association_football }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q16337669
P27
Q15617994
USER
How many administrative territories are Josafá Braga dos Santos a civilian of ?
(Q16337669,P27,c(Q15617994))
action count
action filter_type
action find
entity Q16337669
relation P27
type Q15617994
['Q16337669', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { resource:Q16337669 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
Josafá Braga dos Santos
action count
action filter_type
action find
entity Josafá Braga dos Santos
relation country of citizenship
type designation for an administrative territorial entity
['Josafá Braga dos Santos', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { resource:Josafá_Braga_dos_Santos property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q155
(Q16337669,P27,c(Q15617994))
action count
action filter_type
action find
entity Q16337669
relation P27
type Q15617994
[ANSWER]
['Q16337669', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { resource:Q16337669 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
Brazil
1
action count
action filter_type
action find
entity Josafá Braga dos Santos
relation country of citizenship
type designation for an administrative territorial entity
['Josafá Braga dos Santos', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { resource:Josafá_Braga_dos_Santos property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q6161295
Q15617994
USER
And how about Vicente Pérez Moreda?
(Q6161295,P27,c(Q15617994))
action count
action filter_type
action find
entity Q6161295
relation P27
type Q15617994
['Q6161295', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { ?x rdf:type ontology:Q15617994 . resource:Q6161295 property:P27 ?x }
Vicente Pérez Moreda
action count
action filter_type
action find
entity Vicente Pérez Moreda
relation country of citizenship
type designation for an administrative territorial entity
['Vicente Pérez Moreda', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Vicente_Pérez_Moreda property:country_of_citizenship ?x }
[]
designation for an administrative territorial entity
SYSTEM
1
(Q6161295,P27,c(Q15617994))
action count
action filter_type
action find
entity Q6161295
relation P27
type Q15617994
[ANSWER]
['Q6161295', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { ?x rdf:type ontology:Q15617994 . resource:Q6161295 property:P27 ?x }
1
action count
action filter_type
action find
entity Vicente Pérez Moreda
relation country of citizenship
type designation for an administrative territorial entity
['Vicente Pérez Moreda', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Vicente_Pérez_Moreda property:country_of_citizenship ?x }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6161295
P19
Q56061
USER
Which administrative territory was that person born in ?
action filter_type
action find
entity Q6161295
relation P19
type Q56061
SELECT DISTINCT ?l WHERE { resource:Q6161295 property:P19 ?l . ?l rdf:type ontology:Q56061 }
Vicente Pérez Moreda
action filter_type
action find
entity Vicente Pérez Moreda
relation place of birth
type administrative territorial entity
SELECT DISTINCT ?l WHERE { resource:Vicente_Pérez_Moreda property:place_of_birth ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q15684
SYSTEM
Segovia
Q15684
action filter_type
action find
entity Q6161295
relation P19
type Q56061
That person was born in [ANSWER]
SELECT DISTINCT ?l WHERE { resource:Q6161295 property:P19 ?l . ?l rdf:type ontology:Q56061 }
Segovia
That person was born in Segovia
Segovia
action filter_type
action find
entity Vicente Pérez Moreda
relation place of birth
type administrative territorial entity
SELECT DISTINCT ?l WHERE { resource:Vicente_Pérez_Moreda property:place_of_birth ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P190
Q56061 Q20667921
USER
How many administrative territories and french administrative divisions are sister towns of that administrative territory ?
(Q15684,P190,c(Q56061)) (Q15684,P190,c(Q20667921)) (Q15684,P190,c(Q56061)) (Q15684,P190,c(Q20667921))
action count
action union
action filter_type
action find
entity Q15684
relation P190
type Q56061
action filter_type
action find
entity Q15684
relation P190
type Q20667921
['Q15684', 'P190', {'concept': 'Q56061'}] ['Q15684', 'P190', {'concept': 'Q20667921'}] ['Q15684', 'P190', {'concept': 'Q56061'}] ['Q15684', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { ?h rdf:type ?u . VALUES ( ?u ) { ( ontology:Q56061 ) ( ontology:Q20667921 ) } }
action count
action union
action filter_type
action find
entity Segovia
relation sister city
type administrative territorial entity
action filter_type
action find
entity Segovia
relation sister city
type type of french administrative division
['Segovia', 'sister city', {'concept': 'administrative territorial entity'}] ['Segovia', 'sister city', {'concept': 'type of french administrative division'}] ['Segovia', 'sister city', {'concept': 'administrative territorial entity'}] ['Segovia', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { ?h rdf:type ?u . VALUES ( ?u ) { ( ontology:administrative_territorial_entity ) ( ontology:type_of_french_administrative_division ) } }
[]
administrative territorial entity type of french administrative division
SYSTEM
2 administrative territories and 1 french administrative divisions
Q990973 Q23436 Q288
(Q15684,P190,c(Q56061)) (Q15684,P190,c(Q20667921)) (Q15684,P190,c(Q56061)) (Q15684,P190,c(Q20667921))
action count
action union
action filter_type
action find
entity Q15684
relation P190
type Q56061
action filter_type
action find
entity Q15684
relation P190
type Q20667921
[ANSWER]
['Q15684', 'P190', {'concept': 'Q56061'}] ['Q15684', 'P190', {'concept': 'Q20667921'}] ['Q15684', 'P190', {'concept': 'Q56061'}] ['Q15684', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { ?h rdf:type ?u . VALUES ( ?u ) { ( ontology:Q56061 ) ( ontology:Q20667921 ) } }
Marysville Edinburgh Tours
2 administrative territories and 1 french administrative divisions
action count
action union
action filter_type
action find
entity Segovia
relation sister city
type administrative territorial entity
action filter_type
action find
entity Segovia
relation sister city
type type of french administrative division
['Segovia', 'sister city', {'concept': 'administrative territorial entity'}] ['Segovia', 'sister city', {'concept': 'type of french administrative division'}] ['Segovia', 'sister city', {'concept': 'administrative territorial entity'}] ['Segovia', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { ?h rdf:type ?u . VALUES ( ?u ) { ( ontology:administrative_territorial_entity ) ( ontology:type_of_french_administrative_division ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q2736
P641
Q1002697 Q13226383
USER
How many periodical literatures and facilities are associated with playing association football ?
(c(Q1002697),P641,Q2736) (c(Q13226383),P641,Q2736)
action count
action union
action filter_type
action find_reverse
entity Q2736
relation P641
type Q1002697
action filter_type
action find_reverse
entity Q2736
relation P641
type Q13226383
[{'concept': 'Q1002697'}, 'P641', 'Q2736'] [{'concept': 'Q13226383'}, 'P641', 'Q2736']
SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { { ?c property:P641 resource:Q2736 . ?c rdf:type ontology:Q1002697 } UNION { ?c property:P641 resource:Q2736 . ?c rdf:type ontology:Q13226383 } }
association football
action count
action union
action filter_type
action find_reverse
entity association football
relation sport
type periodical literature
action filter_type
action find_reverse
entity association football
relation sport
type facility
[{'concept': 'periodical literature'}, 'sport', 'association football'] [{'concept': 'facility'}, 'sport', 'association football']
SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { { ?c property:sport resource:association_football . ?c rdf:type ontology:periodical_literature } UNION { ?c property:sport resource:association_football . ?c rdf:type ontology:facility } }
[]
periodical literature facility
SYSTEM
10 periodical literatures and 5 facilities
Q3567689 Q308705 Q2945331 Q1324210 Q3183938 Q481190 Q2657185 Q10136 Q3487374 Q2935297 Q2290575 Q3487231 Q3094508 Q729035 Q1238923
(c(Q1002697),P641,Q2736) (c(Q13226383),P641,Q2736)
action count
action union
action filter_type
action find_reverse
entity Q2736
relation P641
type Q1002697
action filter_type
action find_reverse
entity Q2736
relation P641
type Q13226383
[ANSWER]
[{'concept': 'Q1002697'}, 'P641', 'Q2736'] [{'concept': 'Q13226383'}, 'P641', 'Q2736']
SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { { ?c property:P641 resource:Q2736 . ?c rdf:type ontology:Q1002697 } UNION { ?c property:P641 resource:Q2736 . ?c rdf:type ontology:Q13226383 } }
When Saturday Comes France Football Academia Sporting El Gráfico Jornal Sporting Kicker Trafford Training Centre Centre Tola Vologe Soccer America Camp des Loges Milanello SO FOOT Galatasaray World Soccer Don Balón
10 periodical literatures and 5 facilities
action count
action union
action filter_type
action find_reverse
entity association football
relation sport
type periodical literature
action filter_type
action find_reverse
entity association football
relation sport
type facility
[{'concept': 'periodical literature'}, 'sport', 'association football'] [{'concept': 'facility'}, 'sport', 'association football']
SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { { ?c property:sport resource:association_football . ?c rdf:type ontology:periodical_literature } UNION { ?c property:sport resource:association_football . ?c rdf:type ontology:facility } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P138
Q223557 Q1190554 Q56061
USER
Which administrative territories are the eponym of max number of physical objects and events ?
(c(Q56061),P138,c(Q223557)|c(Q1190554))
action argmax
action union
action find_tuple_counts
relation P138
type Q56061
type Q223557
action find_tuple_counts
relation P138
type Q56061
type Q1190554
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q223557'}, {'concept': 'Q1190554'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?n ) { SELECT DISTINCT ?u ( COUNT ( ?j ) AS ?v ) WHERE { ?j rdf:type ?k . VALUES ( ?k ) { ( ontology:Q223557 ) ( ontology:Q1190554 ) } } GROUP BY ?u } } . { SELECT DISTINCT ?f ( COUNT ( ?h ) AS ?s ) WHERE { { ?f property:P138 ?h . ?f rdf:type ontology:Q56061 . ?h rdf:type ontology:Q223557 } UNION { ?f rdf:type ontology:Q56061 . ?h rdf:type ontology:Q1190554 . ?f property:P138 ?h } } GROUP BY ?f } . FILTER ( ?s = ?n ) }
action argmax
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type physical object
action find_tuple_counts
relation named after
type administrative territorial entity
type event
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'physical object'}, {'concept': 'event'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?n ) { SELECT DISTINCT ?u ( COUNT ( ?j ) AS ?v ) WHERE { ?j rdf:type ?k . VALUES ( ?k ) { ( ontology:physical_object ) ( ontology:event ) } } GROUP BY ?u } } . { SELECT DISTINCT ?f ( COUNT ( ?h ) AS ?s ) WHERE { { ?f property:named_after ?h . ?f rdf:type ontology:administrative_territorial_entity . ?h rdf:type ontology:physical_object } UNION { ?f rdf:type ontology:administrative_territorial_entity . ?h rdf:type ontology:event . ?f property:named_after ?h } } GROUP BY ?f } . FILTER ( ?s = ?n ) }
[]
physical object event administrative territorial entity
Q2058 Q639408 Q7974195
SYSTEM
Whitehorse, Waterloo, Waterloo
Q639408 Q2058 Q7974195 Q2135060 Q3947651
(c(Q56061),P138,c(Q223557)|c(Q1190554))
action argmax
action union
action find_tuple_counts
relation P138
type Q56061
type Q223557
action find_tuple_counts
relation P138
type Q56061
type Q1190554
[ANSWERS] are the eponym of max number of physical objects and events
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q223557'}, {'concept': 'Q1190554'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?n ) { SELECT DISTINCT ?u ( COUNT ( ?j ) AS ?v ) WHERE { ?j rdf:type ?k . VALUES ( ?k ) { ( ontology:Q223557 ) ( ontology:Q1190554 ) } } GROUP BY ?u } } . { SELECT DISTINCT ?f ( COUNT ( ?h ) AS ?s ) WHERE { { ?f property:P138 ?h . ?f rdf:type ontology:Q56061 . ?h rdf:type ontology:Q223557 } UNION { ?f rdf:type ontology:Q56061 . ?h rdf:type ontology:Q1190554 . ?f property:P138 ?h } } GROUP BY ?f } . FILTER ( ?s = ?n ) }
Waterloo Whitehorse Waterloo Gas San Martino della Battaglia
Whitehorse, Waterloo and Waterloo are the eponym of max number of physical objects and events
Whitehorse Waterloo Waterloo
action argmax
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type physical object
action find_tuple_counts
relation named after
type administrative territorial entity
type event
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'physical object'}, {'concept': 'event'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?n ) { SELECT DISTINCT ?u ( COUNT ( ?j ) AS ?v ) WHERE { ?j rdf:type ?k . VALUES ( ?k ) { ( ontology:physical_object ) ( ontology:event ) } } GROUP BY ?u } } . { SELECT DISTINCT ?f ( COUNT ( ?h ) AS ?s ) WHERE { { ?f property:named_after ?h . ?f rdf:type ontology:administrative_territorial_entity . ?h rdf:type ontology:physical_object } UNION { ?f rdf:type ontology:administrative_territorial_entity . ?h rdf:type ontology:event . ?f property:named_after ?h } } GROUP BY ?f } . FILTER ( ?s = ?n ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q2058 Q639408 Q7974195
P17
Q1048835
USER
Which political territories are Whitehorse, Waterloo and Waterloo a part of ?
(Q2058,P17,c(Q1048835)) (Q639408,P17,c(Q1048835)) (Q7974195,P17,c(Q1048835))
action union
action filter_type
action find
entity Q2058
relation P17
type Q1048835
action filter_type
action find
entity Q639408
relation P17
type Q1048835
action filter_type
action find
entity Q7974195
relation P17
type Q1048835
['Q2058', 'P17', {'concept': 'Q1048835'}] ['Q639408', 'P17', {'concept': 'Q1048835'}] ['Q7974195', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { resource:Q2058 property:P17 ?y . ?y rdf:type ontology:Q1048835 } UNION { resource:Q639408 property:P17 ?y . ?y rdf:type ontology:Q1048835 } }
Whitehorse Waterloo Waterloo
action union
action filter_type
action find
entity Whitehorse
relation country
type political territorial entity
action filter_type
action find
entity Waterloo
relation country
type political territorial entity
action filter_type
action find
entity Waterloo
relation country
type political territorial entity
['Whitehorse', 'country', {'concept': 'political territorial entity'}] ['Waterloo', 'country', {'concept': 'political territorial entity'}] ['Waterloo', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { resource:Whitehorse property:country ?y . ?y rdf:type ontology:political_territorial_entity } UNION { resource:Waterloo property:country ?y . ?y rdf:type ontology:political_territorial_entity } }
[]
political territorial entity
Q16 Q16 Q408
SYSTEM
Australia for 3rd, Canada for 1st, 2nd
Q16 Q16 Q408
(Q2058,P17,c(Q1048835)) (Q639408,P17,c(Q1048835)) (Q7974195,P17,c(Q1048835))
action union
action filter_type
action find
entity Q2058
relation P17
type Q1048835
action filter_type
action find
entity Q639408
relation P17
type Q1048835
action filter_type
action find
entity Q7974195
relation P17
type Q1048835
[ANSWERS]
['Q2058', 'P17', {'concept': 'Q1048835'}] ['Q639408', 'P17', {'concept': 'Q1048835'}] ['Q7974195', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { resource:Q2058 property:P17 ?y . ?y rdf:type ontology:Q1048835 } UNION { resource:Q639408 property:P17 ?y . ?y rdf:type ontology:Q1048835 } }
Canada Canada Australia
Canada, Canada and Australia are Whitehorse, Waterloo and Waterloo a part of
Canada Canada Australia
action union
action filter_type
action find
entity Whitehorse
relation country
type political territorial entity
action filter_type
action find
entity Waterloo
relation country
type political territorial entity
action filter_type
action find
entity Waterloo
relation country
type political territorial entity
['Whitehorse', 'country', {'concept': 'political territorial entity'}] ['Waterloo', 'country', {'concept': 'political territorial entity'}] ['Waterloo', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { resource:Whitehorse property:country ?y . ?y rdf:type ontology:political_territorial_entity } UNION { resource:Waterloo property:country ?y . ?y rdf:type ontology:political_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2058
P159
Q7210356
USER
Which political organizations have the principal seat at Whitehorse ?
(c(Q7210356),P159,Q2058)
action filter_type
action find_reverse
entity Q2058
relation P159
type Q7210356
[{'concept': 'Q7210356'}, 'P159', 'Q2058']
SELECT DISTINCT ?g WHERE { ?g property:P159 resource:Q2058 . ?g rdf:type ontology:Q7210356 }
Whitehorse
action filter_type
action find_reverse
entity Whitehorse
relation headquarters location
type political organization
[{'concept': 'political organization'}, 'headquarters location', 'Whitehorse']
SELECT DISTINCT ?g WHERE { ?g property:headquarters_location resource:Whitehorse . ?g rdf:type ontology:political_organization }
[]
political organization
Q748775 Q739885 Q3366822
SYSTEM
Yukon New Democratic Party, Yukon Party, Yukon Green Party
Q3366822 Q748775 Q739885 Q3366634 Q3366503
(c(Q7210356),P159,Q2058)
action filter_type
action find_reverse
entity Q2058
relation P159
type Q7210356
[ANSWERS] have the principal seat at Whitehorse
[{'concept': 'Q7210356'}, 'P159', 'Q2058']
SELECT DISTINCT ?g WHERE { ?g property:P159 resource:Q2058 . ?g rdf:type ontology:Q7210356 }
Yukon Green Party Yukon New Democratic Party Yukon Party Yukon Progressive Conservative Party Yukon Liberal Party
Yukon New Democratic Party, Yukon Party and Yukon Green Party have the principal seat at Whitehorse
Yukon New Democratic Party Yukon Party Yukon Green Party
action filter_type
action find_reverse
entity Whitehorse
relation headquarters location
type political organization
[{'concept': 'political organization'}, 'headquarters location', 'Whitehorse']
SELECT DISTINCT ?g WHERE { ?g property:headquarters_location resource:Whitehorse . ?g rdf:type ontology:political_organization }
[]