Simple Question (Direct)
Simple Question
Q489386
P136
Q151885
USER
What is the genre of Grady Tate ?
(Q489386,P136,c(Q151885))
action filter_type
action find
entity Q489386
relation P136
type Q151885
['Q489386', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?m WHERE { resource:Q489386 property:P136 ?m . ?m rdf:type ontology:Q151885 }
Grady Tate
action filter_type
action find
entity Grady Tate
relation genre
type concept
['Grady Tate', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?m WHERE { resource:Grady_Tate property:genre ?m . ?m rdf:type ontology:concept }
[]
concept
Q8341
SYSTEM
jazz
Q8341
(Q489386,P136,c(Q151885))
action filter_type
action find
entity Q489386
relation P136
type Q151885
The genre of Grady Tate is a [ANSWER]
['Q489386', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?m WHERE { resource:Q489386 property:P136 ?m . ?m rdf:type ontology:Q151885 }
jazz
The genre of Grady Tate is a jazz
jazz
action filter_type
action find
entity Grady Tate
relation genre
type concept
['Grady Tate', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?m WHERE { resource:Grady_Tate property:genre ?m . ?m rdf:type ontology:concept }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q489386
P19
Q56061
USER
Where was that person born ?
(Q8341,P19,c(Q56061))
action filter_type
action find
entity Q489386
relation P19
type Q56061
['Q8341', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q489386 property:P19 ?r . ?r rdf:type ontology:Q56061 }
Grady Tate
action filter_type
action find
entity Grady Tate
relation place of birth
type administrative territorial entity
['jazz', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Grady_Tate property:place_of_birth ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q49229
SYSTEM
Durham
Q49229
(Q8341,P19,c(Q56061))
action filter_type
action find
entity Q489386
relation P19
type Q56061
That person was born in [ANSWER]
['Q8341', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q489386 property:P19 ?r . ?r rdf:type ontology:Q56061 }
Durham
That person was born in Durham
Durham
action filter_type
action find
entity Grady Tate
relation place of birth
type administrative territorial entity
['jazz', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Grady_Tate property:place_of_birth ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P559
Q56061 Q44377 Q728937
USER
Which administrative territories are a terminus for max number of tunnels and railroad lines ?
(c(Q44377)|c(Q728937),P559,c(Q56061))
action argmax
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q44377
action find_reverse_tuple_counts
relation P559
type Q56061
type Q728937
[[{'concept': 'Q44377'}, {'concept': 'Q728937'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) ?p WHERE { ?f rdf:type ?a . VALUES ( ?a ) { ( ontology:Q728937 ) ( ontology:Q44377 ) } } GROUP BY ?p } . FILTER ( ?g = ?d ) . { SELECT DISTINCT ( MAX ( ?r ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) ?k WHERE { { ?i property:P559 ?k . ?k rdf:type ontology:Q56061 . ?i rdf:type ontology:Q44377 } UNION { ?i property:P559 ?k . ?k rdf:type ontology:Q56061 . ?i rdf:type ontology:Q728937 } } GROUP BY ?k } } }
action argmax
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type tunnel
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type railroad line
[[{'concept': 'tunnel'}, {'concept': 'railroad line'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) ?p WHERE { ?f rdf:type ?a . VALUES ( ?a ) { ( ontology:railroad_line ) ( ontology:tunnel ) } } GROUP BY ?p } . FILTER ( ?g = ?d ) . { SELECT DISTINCT ( MAX ( ?r ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) ?k WHERE { { ?i property:terminus ?k . ?k rdf:type ontology:administrative_territorial_entity . ?i rdf:type ontology:tunnel } UNION { ?i property:terminus ?k . ?k rdf:type ontology:administrative_territorial_entity . ?i rdf:type ontology:railroad_line } } GROUP BY ?k } } }
[]
administrative territorial entity tunnel railroad line
Q69639
SYSTEM
Göschenen
Q69639
(c(Q44377)|c(Q728937),P559,c(Q56061))
action argmax
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q44377
action find_reverse_tuple_counts
relation P559
type Q56061
type Q728937
[ANSWER] is a terminus for max number of tunnels and railroad lines
[[{'concept': 'Q44377'}, {'concept': 'Q728937'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) ?p WHERE { ?f rdf:type ?a . VALUES ( ?a ) { ( ontology:Q728937 ) ( ontology:Q44377 ) } } GROUP BY ?p } . FILTER ( ?g = ?d ) . { SELECT DISTINCT ( MAX ( ?r ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) ?k WHERE { { ?i property:P559 ?k . ?k rdf:type ontology:Q56061 . ?i rdf:type ontology:Q44377 } UNION { ?i property:P559 ?k . ?k rdf:type ontology:Q56061 . ?i rdf:type ontology:Q728937 } } GROUP BY ?k } } }
Göschenen
Göschenen is a terminus for max number of tunnels and railroad lines
Göschenen
action argmax
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type tunnel
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type railroad line
[[{'concept': 'tunnel'}, {'concept': 'railroad line'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) ?p WHERE { ?f rdf:type ?a . VALUES ( ?a ) { ( ontology:railroad_line ) ( ontology:tunnel ) } } GROUP BY ?p } . FILTER ( ?g = ?d ) . { SELECT DISTINCT ( MAX ( ?r ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) ?k WHERE { { ?i property:terminus ?k . ?k rdf:type ontology:administrative_territorial_entity . ?i rdf:type ontology:tunnel } UNION { ?i property:terminus ?k . ?k rdf:type ontology:administrative_territorial_entity . ?i rdf:type ontology:railroad_line } } GROUP BY ?k } } }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q69639 Q486726
P47
Q13220204
USER
Does that administrative territory share a border with Sigdal ?
(Q486726,P47,Q69639)
action is_in
entity Q486726
action find
entity Q69639
relation P47
['Q486726', 'P47', 'Q69639']
ASK WHERE { resource:Q69639 property:P47 resource:Q486726 }
Göschenen Sigdal
action is_in
entity Sigdal
action find
entity Göschenen
relation shares border with
['Sigdal', 'shares border with', 'Göschenen']
ASK WHERE { resource:Göschenen property:shares_border_with resource:Sigdal }
[]
second-level administrative country subdivision
SYSTEM
NO
(Q486726,P47,Q69639)
action is_in
entity Q486726
action find
entity Q69639
relation P47
[ANSWER]
['Q486726', 'P47', 'Q69639']
ASK WHERE { resource:Q69639 property:P47 resource:Q486726 }
No
action is_in
entity Sigdal
action find
entity Göschenen
relation shares border with
['Sigdal', 'shares border with', 'Göschenen']
ASK WHERE { resource:Göschenen property:shares_border_with resource:Sigdal }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q49229 Q30
P17
Q15617994
USER
Is Durham situated in United States of America ?
(Q49229,P17,Q30)
action is_in
entity Q30
action find
entity Q49229
relation P17
['Q49229', 'P17', 'Q30']
ASK WHERE { resource:Q49229 property:P17 resource:Q30 }
Durham United States of America
action is_in
entity United States of America
action find
entity Durham
relation country
['Durham', 'country', 'United States of America']
ASK WHERE { resource:Durham property:country resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q49229,P17,Q30)
action is_in
entity Q30
action find
entity Q49229
relation P17
[ANSWER]
['Q49229', 'P17', 'Q30']
ASK WHERE { resource:Q49229 property:P17 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity Durham
relation country
['Durham', 'country', 'United States of America']
ASK WHERE { resource:Durham property:country resource:United_States_of_America }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q69639 Q65450
P47
Q13220204
USER
Is Gurtnellen adjacent to Göschenen ?
(Q69639,P47,Q65450)
action is_in
entity Q65450
action find
entity Q69639
relation P47
['Q69639', 'P47', 'Q65450']
ASK WHERE { resource:Q69639 property:P47 resource:Q65450 }
Göschenen Gurtnellen
action is_in
entity Gurtnellen
action find
entity Göschenen
relation shares border with
['Göschenen', 'shares border with', 'Gurtnellen']
ASK WHERE { resource:Göschenen property:shares_border_with resource:Gurtnellen }
[]
second-level administrative country subdivision
SYSTEM
YES
(Q69639,P47,Q65450)
action is_in
entity Q65450
action find
entity Q69639
relation P47
[ANSWER]
['Q69639', 'P47', 'Q65450']
ASK WHERE { resource:Q69639 property:P47 resource:Q65450 }
Yes
action is_in
entity Gurtnellen
action find
entity Göschenen
relation shares border with
['Göschenen', 'shares border with', 'Gurtnellen']
ASK WHERE { resource:Göschenen property:shares_border_with resource:Gurtnellen }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q69639
P551
Q502895
USER
Who resides at that administrative territory ?
action filter_type
action find_reverse
entity Q69639
relation P551
type Q502895
SELECT DISTINCT ?a WHERE { ?a property:P551 resource:Q69639 . ?a rdf:type ontology:Q502895 }
Göschenen
action filter_type
action find_reverse
entity Göschenen
relation residence
type common name
SELECT DISTINCT ?a WHERE { ?a property:residence resource:Göschenen . ?a rdf:type ontology:common_name }
[]
common name
Q18620704
SYSTEM
Carlo Dittli
Q18620704
action filter_type
action find_reverse
entity Q69639
relation P551
type Q502895
[ANSWER] resides at that administrative territory
SELECT DISTINCT ?a WHERE { ?a property:P551 resource:Q69639 . ?a rdf:type ontology:Q502895 }
Carlo Dittli
Carlo Dittli resides at that administrative territory
Carlo Dittli
action filter_type
action find_reverse
entity Göschenen
relation residence
type common name
SELECT DISTINCT ?a WHERE { ?a property:residence resource:Göschenen . ?a rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q49229
P190
Q56061
USER
Which administrative territories are twin towns of Durham ?
(Q49229,P190,c(Q56061))
action filter_type
action find
entity Q49229
relation P190
type Q56061
['Q49229', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q49229 property:P190 ?e . ?e rdf:type ontology:Q56061 }
Durham
action filter_type
action find
entity Durham
relation sister city
type administrative territorial entity
['Durham', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Durham property:sister_city ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q4301 Q2592
SYSTEM
Arusha, Kostroma
Q4301 Q2592
(Q49229,P190,c(Q56061))
action filter_type
action find
entity Q49229
relation P190
type Q56061
The [ANSWERS] are twin towns of Durham
['Q49229', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q49229 property:P190 ?e . ?e rdf:type ontology:Q56061 }
Arusha Kostroma
The Arusha and Kostroma are twin towns of Durham
Arusha Kostroma
action filter_type
action find
entity Durham
relation sister city
type administrative territorial entity
['Durham', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Durham property:sister_city ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7999385 Q49229
P17
Q15617994
USER
Which administrative territories are Durham or Wayne Township situated in ?
OR((Q49229,P17,c(Q15617994)), (Q7999385,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q49229
relation P17
action find
entity Q7999385
relation P17
type Q15617994
{'OR': [['Q49229', 'P17', {'concept': 'Q15617994'}], ['Q7999385', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?s ) { ( resource:Q49229 ) ( resource:Q7999385 ) } . ?s property:P17 ?g } . ?g rdf:type ontology:Q15617994 }
Wayne Township Durham
action filter_type
action union
action find
entity Durham
relation country
action find
entity Wayne Township
relation country
type designation for an administrative territorial entity
{'OR': [['Durham', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Wayne Township', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?s ) { ( resource:Durham ) ( resource:Wayne_Township ) } . ?s property:country ?g } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
OR((Q49229,P17,c(Q15617994)), (Q7999385,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q49229
relation P17
action find
entity Q7999385
relation P17
type Q15617994
Durham or Wayne Township are situated in [ANSWER]
{'OR': [['Q49229', 'P17', {'concept': 'Q15617994'}], ['Q7999385', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?s ) { ( resource:Q49229 ) ( resource:Q7999385 ) } . ?s property:P17 ?g } . ?g rdf:type ontology:Q15617994 }
United States of America
Durham or Wayne Township are situated in United States of America
United States of America
action filter_type
action union
action find
entity Durham
relation country
action find
entity Wayne Township
relation country
type designation for an administrative territorial entity
{'OR': [['Durham', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Wayne Township', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?s ) { ( resource:Durham ) ( resource:Wayne_Township ) } . ?s property:country ?g } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2130912 Q489386
P27
Q15617994
USER
Which administrative territories are Grady Tate or Roemer Vlacq an inhabitant of ?
OR((Q489386,P27,c(Q15617994)), (Q2130912,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q489386
relation P27
action find
entity Q2130912
relation P27
type Q15617994
{'OR': [['Q489386', 'P27', {'concept': 'Q15617994'}], ['Q2130912', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { ?z property:P27 ?l . VALUES ( ?z ) { ( resource:Q2130912 ) ( resource:Q489386 ) } } . ?l rdf:type ontology:Q15617994 }
Roemer Vlacq Grady Tate
action filter_type
action union
action find
entity Grady Tate
relation country of citizenship
action find
entity Roemer Vlacq
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Grady Tate', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Roemer Vlacq', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { ?z property:country_of_citizenship ?l . VALUES ( ?z ) { ( resource:Roemer_Vlacq ) ( resource:Grady_Tate ) } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q55
SYSTEM
United States of America, Netherlands
Q30 Q55
OR((Q489386,P27,c(Q15617994)), (Q2130912,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q489386
relation P27
action find
entity Q2130912
relation P27
type Q15617994
[ANSWERS] are Grady Tate or Roemer Vlacq an inhabitant of
{'OR': [['Q489386', 'P27', {'concept': 'Q15617994'}], ['Q2130912', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { ?z property:P27 ?l . VALUES ( ?z ) { ( resource:Q2130912 ) ( resource:Q489386 ) } } . ?l rdf:type ontology:Q15617994 }
United States of America Netherlands
United States of America and Netherlands are Grady Tate or Roemer Vlacq an inhabitant of
United States of America Netherlands
action filter_type
action union
action find
entity Grady Tate
relation country of citizenship
action find
entity Roemer Vlacq
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Grady Tate', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Roemer Vlacq', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { ?z property:country_of_citizenship ?l . VALUES ( ?z ) { ( resource:Roemer_Vlacq ) ( resource:Grady_Tate ) } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]