Simple Question (Direct)
Simple Question
Q1478413
P102
Q7210356
USER
Which party does Hans Wehrli belong to ?
(Q1478413,P102,c(Q7210356))
action filter_type
action find
entity Q1478413
relation P102
type Q7210356
['Q1478413', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?w WHERE { resource:Q1478413 property:P102 ?w . ?w rdf:type ontology:Q7210356 }
Hans Wehrli
action filter_type
action find
entity Hans Wehrli
relation member of political party
type political organization
['Hans Wehrli', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?w WHERE { resource:Hans_Wehrli property:member_of_political_party ?w . ?w rdf:type ontology:political_organization }
[]
political organization
Q7320
SYSTEM
Nazi Party
Q7320
(Q1478413,P102,c(Q7210356))
action filter_type
action find
entity Q1478413
relation P102
type Q7210356
Hans Wehrli belongs to [ANSWER]
['Q1478413', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?w WHERE { resource:Q1478413 property:P102 ?w . ?w rdf:type ontology:Q7210356 }
Nazi Party
Hans Wehrli belongs to Nazi Party
Nazi Party
action filter_type
action find
entity Hans Wehrli
relation member of political party
type political organization
['Hans Wehrli', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?w WHERE { resource:Hans_Wehrli property:member_of_political_party ?w . ?w rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1478413
P27
Q1048835
USER
Which political territory is the native country of Hans Wehrli ?
(Q1478413,P27,c(Q1048835))
action filter_type
action find
entity Q1478413
relation P27
type Q1048835
['Q1478413', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { resource:Q1478413 property:P27 ?b . ?b rdf:type ontology:Q1048835 }
Hans Wehrli
action filter_type
action find
entity Hans Wehrli
relation country of citizenship
type political territorial entity
['Hans Wehrli', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Hans_Wehrli property:country_of_citizenship ?b . ?b rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q1478413,P27,c(Q1048835))
action filter_type
action find
entity Q1478413
relation P27
type Q1048835
The [ANSWER] is the native country of Hans Wehrli
['Q1478413', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { resource:Q1478413 property:P27 ?b . ?b rdf:type ontology:Q1048835 }
Germany
The Germany is the native country of Hans Wehrli
Germany
action filter_type
action find
entity Hans Wehrli
relation country of citizenship
type political territorial entity
['Hans Wehrli', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Hans_Wehrli property:country_of_citizenship ?b . ?b rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q183 Q31
P530
Q15617994
USER
How many administrative territories have diplomatic relations with Germany and Belgium ?
(c(Q15617994),P530,Q183) (c(Q15617994),P530,Q31)
action count
action intersection
action filter_type
action find_reverse
entity Q183
relation P530
type Q15617994
action filter_type
action find_reverse
entity Q31
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q183'] [{'concept': 'Q15617994'}, 'P530', 'Q31']
SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { ?m property:P530 resource:Q183 . ?m rdf:type ontology:Q15617994 . ?m property:P530 resource:Q31 . ?m rdf:type ontology:Q15617994 }
Germany Belgium
action count
action intersection
action filter_type
action find_reverse
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Belgium
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Germany'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Belgium']
SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { ?m property:diplomatic_relation resource:Germany . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m property:diplomatic_relation resource:Belgium . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
5
Q929 Q347 Q38 Q230 Q32
(c(Q15617994),P530,Q183) (c(Q15617994),P530,Q31)
action count
action intersection
action filter_type
action find_reverse
entity Q183
relation P530
type Q15617994
action filter_type
action find_reverse
entity Q31
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', 'Q183'] [{'concept': 'Q15617994'}, 'P530', 'Q31']
SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { ?m property:P530 resource:Q183 . ?m rdf:type ontology:Q15617994 . ?m property:P530 resource:Q31 . ?m rdf:type ontology:Q15617994 }
Central African Republic Liechtenstein Italy Georgia Luxembourg
5
action count
action intersection
action filter_type
action find_reverse
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Belgium
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Germany'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Belgium']
SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { ?m property:diplomatic_relation resource:Germany . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m property:diplomatic_relation resource:Belgium . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16014020 Q1478413
P19
Q56061
USER
Which administrative territories were Hans Wehrli or Ambrose Burke born at ?
OR((Q1478413,P19,c(Q56061)), (Q16014020,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1478413
relation P19
action find
entity Q16014020
relation P19
type Q56061
{'OR': [['Q1478413', 'P19', {'concept': 'Q56061'}], ['Q16014020', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q1478413 property:P19 ?w } UNION { resource:Q16014020 property:P19 ?w } } . ?w rdf:type ontology:Q56061 }
Ambrose Burke Hans Wehrli
action filter_type
action union
action find
entity Hans Wehrli
relation place of birth
action find
entity Ambrose Burke
relation place of birth
type administrative territorial entity
{'OR': [['Hans Wehrli', 'place of birth', {'concept': 'administrative territorial entity'}], ['Ambrose Burke', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Hans_Wehrli property:place_of_birth ?w } UNION { resource:Ambrose_Burke property:place_of_birth ?w } } . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q9125 Q1913213
SYSTEM
Winterthur, Sigourney
Q9125 Q1913213
OR((Q1478413,P19,c(Q56061)), (Q16014020,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1478413
relation P19
action find
entity Q16014020
relation P19
type Q56061
Hans Wehrli or Ambrose Burke were born in [ANSWERS]
{'OR': [['Q1478413', 'P19', {'concept': 'Q56061'}], ['Q16014020', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q1478413 property:P19 ?w } UNION { resource:Q16014020 property:P19 ?w } } . ?w rdf:type ontology:Q56061 }
Winterthur Sigourney
Hans Wehrli or Ambrose Burke were born in Winterthur and Sigourney
Winterthur Sigourney
action filter_type
action union
action find
entity Hans Wehrli
relation place of birth
action find
entity Ambrose Burke
relation place of birth
type administrative territorial entity
{'OR': [['Hans Wehrli', 'place of birth', {'concept': 'administrative territorial entity'}], ['Ambrose Burke', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Hans_Wehrli property:place_of_birth ?w } UNION { resource:Ambrose_Burke property:place_of_birth ?w } } . ?w rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q16014020
P27
Q15617994
USER
How many administrative territories are the countries of citizenship of Ambrose Burke ?
(Q16014020,P27,c(Q15617994))
action count
action filter_type
action find
entity Q16014020
relation P27
type Q15617994
['Q16014020', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { resource:Q16014020 property:P27 ?n . ?n rdf:type ontology:Q15617994 }
Ambrose Burke
action count
action filter_type
action find
entity Ambrose Burke
relation country of citizenship
type designation for an administrative territorial entity
['Ambrose Burke', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { resource:Ambrose_Burke property:country_of_citizenship ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q30
(Q16014020,P27,c(Q15617994))
action count
action filter_type
action find
entity Q16014020
relation P27
type Q15617994
[ANSWER]
['Q16014020', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { resource:Q16014020 property:P27 ?n . ?n rdf:type ontology:Q15617994 }
United States of America
1
action count
action filter_type
action find
entity Ambrose Burke
relation country of citizenship
type designation for an administrative territorial entity
['Ambrose Burke', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { resource:Ambrose_Burke property:country_of_citizenship ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16014020
P21
Q290
USER
Which sex does that person belong to ?
action filter_type
action find
entity Q16014020
relation P21
type Q290
SELECT DISTINCT ?h WHERE { resource:Q16014020 property:P21 ?h . ?h rdf:type ontology:Q290 }
Ambrose Burke
action filter_type
action find
entity Ambrose Burke
relation gender
type sex
SELECT DISTINCT ?h WHERE { resource:Ambrose_Burke property:gender ?h . ?h rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
action filter_type
action find
entity Q16014020
relation P21
type Q290
That person belongs to [ANSWER]
SELECT DISTINCT ?h WHERE { resource:Q16014020 property:P21 ?h . ?h rdf:type ontology:Q290 }
male
That person belongs to male
male
action filter_type
action find
entity Ambrose Burke
relation gender
type sex
SELECT DISTINCT ?h WHERE { resource:Ambrose_Burke property:gender ?h . ?h rdf:type ontology:sex }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P609
Q56061 Q83620 Q34442
USER
Which administrative territories are the destinations of atleast 2 thoroughfares and roads ?
(c(Q83620)|c(Q34442),P609,c(Q56061))
action atleast
action union
action find_reverse_tuple_counts
relation P609
type Q56061
type Q83620
action find_reverse_tuple_counts
relation P609
type Q56061
type Q34442
value 2
[[{'concept': 'Q83620'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) ?l WHERE { { ?v property:P609 ?l . ?l rdf:type ontology:Q56061 . ?v rdf:type ontology:Q83620 } UNION { ?v property:P609 ?l . ?l rdf:type ontology:Q56061 . ?v rdf:type ontology:Q34442 } } GROUP BY ?l } . FILTER ( ?t >= 2 ) }
action atleast
action union
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type road
value 2
[[{'concept': 'thoroughfare'}, {'concept': 'road'}], 'terminus location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) ?l WHERE { { ?v property:terminus_location ?l . ?l rdf:type ontology:administrative_territorial_entity . ?v rdf:type ontology:thoroughfare } UNION { ?v property:terminus_location ?l . ?l rdf:type ontology:administrative_territorial_entity . ?v rdf:type ontology:road } } GROUP BY ?l } . FILTER ( ?t >= 2 ) }
[]
administrative territorial entity thoroughfare road
Q1085 Q8686 Q956
SYSTEM
Prague, Shanghai, Beijing
Q803 Q599331 Q180139 Q38511 Q23311 Q12443 Q83178 Q10014 Q4093 Q832938 Q488924 Q748747 Q9920 Q131335 Q923799 Q749 Q960454 Q675049 Q3532 Q79889 Q755600 Q506586 Q3239732 Q1948672 Q502312 Q793 Q545457 Q3322237 Q23436 Q81137 Q828753 Q26430 Q192896 Q992 Q8686 Q33518 Q756103 Q170263 Q472 Q34863 Q934511 Q2056925 Q1007168 Q780532 Q184587 Q755106 Q959585 Q956 Q174224 Q9832 Q179224 Q26421 Q631666 Q58900 Q44989 Q2543653 Q12439 Q2906589 Q49225 Q2549819 Q937736 Q2278965 Q8385 Q18681973 Q1310 Q727 Q989919 Q990130 Q1988986 Q34370 Q2181173 Q28237 Q24454 Q75967 Q2076290 Q40844 Q60705 Q49267 Q369947 Q755773 Q975 Q2659606 Q1017 Q505601 Q1085
(c(Q83620)|c(Q34442),P609,c(Q56061))
action atleast
action union
action find_reverse_tuple_counts
relation P609
type Q56061
type Q83620
action find_reverse_tuple_counts
relation P609
type Q56061
type Q34442
value 2
[ANSWERS] are the destinations of atleast 2 thoroughfares and roads
[[{'concept': 'Q83620'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) ?l WHERE { { ?v property:P609 ?l . ?l rdf:type ontology:Q56061 . ?v rdf:type ontology:Q83620 } UNION { ?v property:P609 ?l . ?l rdf:type ontology:Q56061 . ?v rdf:type ontology:Q34442 } } GROUP BY ?l } . FILTER ( ?t >= 2 ) }
Utrecht Biddinghuizen Hradec Králové Turku City of London Marquette Almere Kampen Glasgow Bodegraven Oceanside New Buffalo Haarlem Sioux Falls Santee Groningen Holyport Flandreau Hemel Hempstead Casa Grande Milford Newark Sulphur Carlin Maasdijk Zwolle Nieuw-Vennep Venlo Edinburgh Olomouc Coronado Tilburg Carlisle Amersfoort Shanghai Dover Lewes Chester Sofia Oklahoma City Papendrecht Tripp IJsselmuiden Negaunee Grand Rapids Rehoboth Beach Streefkerk Beijing Wilmington Eindhoven Dover Dordrecht Holtville Doncaster Tulsa Den Hoorn, South Holland Detroit Blijham Reno Seaton Burn Hot Springs Henryetta Ostrava Kedonperä Arnhem Amsterdam Farmington Hills Hook of Holland Mitchell Rotterdam Bellingwolde Lansing Troisvierges Schoondijke Wells Breda Emmeloord Henderson El Cajon Harrington San Antonio Caldwell Aachen Wassenaar Prague
Prague, Shanghai and Beijing are the destinations of atleast 2 thoroughfares and roads
Prague Shanghai Beijing
action atleast
action union
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type road
value 2
[[{'concept': 'thoroughfare'}, {'concept': 'road'}], 'terminus location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) ?l WHERE { { ?v property:terminus_location ?l . ?l rdf:type ontology:administrative_territorial_entity . ?v rdf:type ontology:thoroughfare } UNION { ?v property:terminus_location ?l . ?l rdf:type ontology:administrative_territorial_entity . ?v rdf:type ontology:road } } GROUP BY ?l } . FILTER ( ?t >= 2 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q785088 Q16014020
P69
Q163740
USER
Which nonprofit organizations were Ambrose Burke or Robert A. J. Gagnon educated at ?
OR((Q16014020,P69,c(Q163740)), (Q785088,P69,c(Q163740)))
action filter_type
action union
action find
entity Q16014020
relation P69
action find
entity Q785088
relation P69
type Q163740
{'OR': [['Q16014020', 'P69', {'concept': 'Q163740'}], ['Q785088', 'P69', {'concept': 'Q163740'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q163740 . { ?t property:P69 ?b . VALUES ( ?t ) { ( resource:Q16014020 ) ( resource:Q785088 ) } } }
Robert A. J. Gagnon Ambrose Burke
action filter_type
action union
action find
entity Ambrose Burke
relation educated at
action find
entity Robert A. J. Gagnon
relation educated at
type nonprofit organization
{'OR': [['Ambrose Burke', 'educated at', {'concept': 'nonprofit organization'}], ['Robert A. J. Gagnon', 'educated at', {'concept': 'nonprofit organization'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:nonprofit_organization . { ?t property:educated_at ?b . VALUES ( ?t ) { ( resource:Ambrose_Burke ) ( resource:Robert_A._J._Gagnon ) } } }
[]
nonprofit organization
Q49116 Q909696 Q49112 Q13371
SYSTEM
Dartmouth College, Princeton Theological Seminary, Yale University, Harvard University
Q49116 Q909696 Q49112 Q13371
OR((Q16014020,P69,c(Q163740)), (Q785088,P69,c(Q163740)))
action filter_type
action union
action find
entity Q16014020
relation P69
action find
entity Q785088
relation P69
type Q163740
Ambrose Burke or Robert A. J. Gagnon were educated at the [ANSWERS]
{'OR': [['Q16014020', 'P69', {'concept': 'Q163740'}], ['Q785088', 'P69', {'concept': 'Q163740'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q163740 . { ?t property:P69 ?b . VALUES ( ?t ) { ( resource:Q16014020 ) ( resource:Q785088 ) } } }
Dartmouth College Princeton Theological Seminary Yale University Harvard University
Ambrose Burke or Robert A. J. Gagnon were educated at the Dartmouth College, Princeton Theological Seminary, Yale University and Harvard University
Dartmouth College Princeton Theological Seminary Yale University Harvard University
action filter_type
action union
action find
entity Ambrose Burke
relation educated at
action find
entity Robert A. J. Gagnon
relation educated at
type nonprofit organization
{'OR': [['Ambrose Burke', 'educated at', {'concept': 'nonprofit organization'}], ['Robert A. J. Gagnon', 'educated at', {'concept': 'nonprofit organization'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:nonprofit_organization . { ?t property:educated_at ?b . VALUES ( ?t ) { ( resource:Ambrose_Burke ) ( resource:Robert_A._J._Gagnon ) } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q785088
P27
Q15617994
USER
How many administrative territories do Robert A. J. Gagnon belong to ?
(Q785088,P27,c(Q15617994))
action count
action filter_type
action find
entity Q785088
relation P27
type Q15617994
['Q785088', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { resource:Q785088 property:P27 ?z . ?z rdf:type ontology:Q15617994 }
Robert A. J. Gagnon
action count
action filter_type
action find
entity Robert A. J. Gagnon
relation country of citizenship
type designation for an administrative territorial entity
['Robert A. J. Gagnon', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { resource:Robert_A._J._Gagnon property:country_of_citizenship ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q30
(Q785088,P27,c(Q15617994))
action count
action filter_type
action find
entity Q785088
relation P27
type Q15617994
[ANSWER]
['Q785088', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { resource:Q785088 property:P27 ?z . ?z rdf:type ontology:Q15617994 }
United States of America
1
action count
action filter_type
action find
entity Robert A. J. Gagnon
relation country of citizenship
type designation for an administrative territorial entity
['Robert A. J. Gagnon', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { resource:Robert_A._J._Gagnon property:country_of_citizenship ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q785088
P106
Q12737077
USER
What do that person do for a living ?
action filter_type
action find
entity Q785088
relation P106
type Q12737077
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q12737077 . resource:Q785088 property:P106 ?w }
Robert A. J. Gagnon
action filter_type
action find
entity Robert A. J. Gagnon
relation occupation
type occupation
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:occupation . resource:Robert_A._J._Gagnon property:occupation ?w }
[]
occupation
Q1234713 Q1622272
SYSTEM
theologian, university teacher
Q1234713 Q1622272
action filter_type
action find
entity Q785088
relation P106
type Q12737077
That person do for a living a [ANSWERS]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q12737077 . resource:Q785088 property:P106 ?w }
theologian university teacher
That person do for a living a theologian and university teacher
theologian university teacher
action filter_type
action find
entity Robert A. J. Gagnon
relation occupation
type occupation
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:occupation . resource:Robert_A._J._Gagnon property:occupation ?w }
[]