Simple Question (Direct)
Simple Question
Q203843
P1412
Q34770
USER
Which language is Alfonso García Robles capable of writing ?
(Q203843,P1412,c(Q34770))
action filter_type
action find
entity Q203843
relation P1412
type Q34770
['Q203843', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { resource:Q203843 property:P1412 ?r . ?r rdf:type ontology:Q34770 }
Alfonso García Robles
action filter_type
action find
entity Alfonso García Robles
relation languages spoken, written or signed
type language
['Alfonso García Robles', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { resource:Alfonso_García_Robles property:languages_spoken,_written_or_signed ?r . ?r rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q203843,P1412,c(Q34770))
action filter_type
action find
entity Q203843
relation P1412
type Q34770
[ANSWER] is Alfonso García Robles capable of writing
['Q203843', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { resource:Q203843 property:P1412 ?r . ?r rdf:type ontology:Q34770 }
Spanish
Spanish is Alfonso García Robles capable of writing
Spanish
action filter_type
action find
entity Alfonso García Robles
relation languages spoken, written or signed
type language
['Alfonso García Robles', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { resource:Alfonso_García_Robles property:languages_spoken,_written_or_signed ?r . ?r rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q203843
P20
Q56061
USER
Where did the expiration of that person occur ?
(Q1321,P20,c(Q56061))
action filter_type
action find
entity Q203843
relation P20
type Q56061
['Q1321', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q203843 property:P20 ?u . ?u rdf:type ontology:Q56061 }
Alfonso García Robles
action filter_type
action find
entity Alfonso García Robles
relation place of death
type administrative territorial entity
['Spanish', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Alfonso_García_Robles property:place_of_death ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1489
SYSTEM
Mexico City
Q1489
(Q1321,P20,c(Q56061))
action filter_type
action find
entity Q203843
relation P20
type Q56061
The expiration of that person occurred in [ANSWER]
['Q1321', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q203843 property:P20 ?u . ?u rdf:type ontology:Q56061 }
Mexico City
The expiration of that person occurred in Mexico City
Mexico City
action filter_type
action find
entity Alfonso García Robles
relation place of death
type administrative territorial entity
['Spanish', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Alfonso_García_Robles property:place_of_death ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q203843
P106
Q28640 Q12737077
USER
How many professions and occupations have Alfonso García Robles as his/her as a career ?
(Q203843,P106,c(Q28640)) (Q203843,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q203843
relation P106
type Q28640
action filter_type
action find
entity Q203843
relation P106
type Q12737077
['Q203843', 'P106', {'concept': 'Q28640'}] ['Q203843', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { { resource:Q203843 property:P106 ?i . ?i rdf:type ontology:Q28640 } UNION { ?i rdf:type ontology:Q12737077 . resource:Q203843 property:P106 ?i } }
Alfonso García Robles
action count
action union
action filter_type
action find
entity Alfonso García Robles
relation occupation
type profession
action filter_type
action find
entity Alfonso García Robles
relation occupation
type occupation
['Alfonso García Robles', 'occupation', {'concept': 'profession'}] ['Alfonso García Robles', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { { resource:Alfonso_García_Robles property:occupation ?i . ?i rdf:type ontology:profession } UNION { ?i rdf:type ontology:occupation . resource:Alfonso_García_Robles property:occupation ?i } }
[]
profession occupation
SYSTEM
1 professions and 2 occupations
Q193391 Q36180 Q40348
(Q203843,P106,c(Q28640)) (Q203843,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q203843
relation P106
type Q28640
action filter_type
action find
entity Q203843
relation P106
type Q12737077
[ANSWER]
['Q203843', 'P106', {'concept': 'Q28640'}] ['Q203843', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { { resource:Q203843 property:P106 ?i . ?i rdf:type ontology:Q28640 } UNION { ?i rdf:type ontology:Q12737077 . resource:Q203843 property:P106 ?i } }
diplomat writer lawyer
1 professions and 2 occupations
action count
action union
action filter_type
action find
entity Alfonso García Robles
relation occupation
type profession
action filter_type
action find
entity Alfonso García Robles
relation occupation
type occupation
['Alfonso García Robles', 'occupation', {'concept': 'profession'}] ['Alfonso García Robles', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { { resource:Alfonso_García_Robles property:occupation ?i . ?i rdf:type ontology:profession } UNION { ?i rdf:type ontology:occupation . resource:Alfonso_García_Robles property:occupation ?i } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q495379 Q1489
P19 P190
Q56061
USER
Which administrative territories are partner towns of Mexico City or were Evgeny Yarovenko born at ?
OR((Q1489,P190,c(Q56061)), (Q495379,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1489
relation P190
action find
entity Q495379
relation P19
type Q56061
{'OR': [['Q1489', 'P190', {'concept': 'Q56061'}], ['Q495379', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q1489 property:P190 ?f } UNION { resource:Q495379 property:P19 ?f } } . ?f rdf:type ontology:Q56061 }
Evgeny Yarovenko Mexico City
action filter_type
action union
action find
entity Mexico City
relation sister city
action find
entity Evgeny Yarovenko
relation place of birth
type administrative territorial entity
{'OR': [['Mexico City', 'sister city', {'concept': 'administrative territorial entity'}], ['Evgeny Yarovenko', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Mexico_City property:sister_city ?f } UNION { resource:Evgeny_Yarovenko property:place_of_birth ?f } } . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1754 Q171632 Q3630 Q1335 Q1555 Q1850973 Q956 Q1491 Q172 Q41211
SYSTEM
Some of them are Stockholm, Maracaibo, Jakarta, Montevideo, Guatemala City, Karatau, Beijing, La Paz, Toronto, San Juan
Q1754 Q1022 Q35178 Q1850973 Q3110 Q3130 Q1297 Q65 Q1829 Q34820 Q1524 Q41211 Q1335 Q1563 Q3630 Q3306 Q33935 Q1490 Q5582862 Q85 Q3856 Q406 Q174 Q172 Q2868 Q8678 Q2807 Q597 Q956 Q1555 Q159273 Q64 Q1491 Q3820 Q171632 Q16555
OR((Q1489,P190,c(Q56061)), (Q495379,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1489
relation P190
action find
entity Q495379
relation P19
type Q56061
[ANSWERS] are partner towns of Mexico City or were Evgeny Yarovenko born at
{'OR': [['Q1489', 'P190', {'concept': 'Q56061'}], ['Q495379', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q1489 property:P190 ?f } UNION { resource:Q495379 property:P19 ?f } } . ?f rdf:type ontology:Q56061 }
Stockholm Stuttgart Kuwait City Karatau San Salvador Sydney Chicago Los Angeles Kaliningrad Santo Domingo Athens San Juan Montevideo Havana Jakarta Panama City Tel Aviv Tokyo Cusco Cairo Nicosia Istanbul São Paulo Toronto Lima Rio de Janeiro Madrid Lisbon Beijing Guatemala City Arequipa Berlin La Paz Beirut Maracaibo Houston
Stockholm, Maracaibo, Jakarta, Montevideo, Guatemala City, Karatau, Beijing, La Paz, Toronto and San Juan are partner towns of Mexico City or were Evgeny Yarovenko born at
Stockholm Maracaibo Jakarta Montevideo Guatemala City Karatau Beijing La Paz Toronto San Juan
action filter_type
action union
action find
entity Mexico City
relation sister city
action find
entity Evgeny Yarovenko
relation place of birth
type administrative territorial entity
{'OR': [['Mexico City', 'sister city', {'concept': 'administrative territorial entity'}], ['Evgeny Yarovenko', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Mexico_City property:sister_city ?f } UNION { resource:Evgeny_Yarovenko property:place_of_birth ?f } } . ?f rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1754
P840
Q15850590
USER
Which theatrical genre has its narrative set in Stockholm ?
(c(Q15850590),P840,Q1754)
action filter_type
action find_reverse
entity Q1754
relation P840
type Q15850590
[{'concept': 'Q15850590'}, 'P840', 'Q1754']
SELECT DISTINCT ?z WHERE { ?z property:P840 resource:Q1754 . ?z rdf:type ontology:Q15850590 }
Stockholm
action filter_type
action find_reverse
entity Stockholm
relation narrative location
type theatrical genre
[{'concept': 'theatrical genre'}, 'narrative location', 'Stockholm']
SELECT DISTINCT ?z WHERE { ?z property:narrative_location resource:Stockholm . ?z rdf:type ontology:theatrical_genre }
[]
theatrical genre
Q920668
SYSTEM
Gustave III
Q920668
(c(Q15850590),P840,Q1754)
action filter_type
action find_reverse
entity Q1754
relation P840
type Q15850590
[ANSWER] has its narrative set in Stockholm
[{'concept': 'Q15850590'}, 'P840', 'Q1754']
SELECT DISTINCT ?z WHERE { ?z property:P840 resource:Q1754 . ?z rdf:type ontology:Q15850590 }
Gustave III
Gustave III has its narrative set in Stockholm
Gustave III
action filter_type
action find_reverse
entity Stockholm
relation narrative location
type theatrical genre
[{'concept': 'theatrical genre'}, 'narrative location', 'Stockholm']
SELECT DISTINCT ?z WHERE { ?z property:narrative_location resource:Stockholm . ?z rdf:type ontology:theatrical_genre }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1754
P206
Q15324
USER
Which body of water is located next to Stockholm ?
(Q1754,P206,c(Q15324))
action filter_type
action find
entity Q1754
relation P206
type Q15324
['Q1754', 'P206', {'concept': 'Q15324'}]
SELECT DISTINCT ?d WHERE { resource:Q1754 property:P206 ?d . ?d rdf:type ontology:Q15324 }
Stockholm
action filter_type
action find
entity Stockholm
relation located next to body of water
type body of water
['Stockholm', 'located next to body of water', {'concept': 'body of water'}]
SELECT DISTINCT ?d WHERE { resource:Stockholm property:located_next_to_body_of_water ?d . ?d rdf:type ontology:body_of_water }
[]
body of water
Q4176307
SYSTEM
Saltsjön
Q4176307
(Q1754,P206,c(Q15324))
action filter_type
action find
entity Q1754
relation P206
type Q15324
[ANSWER] is located next to Stockholm
['Q1754', 'P206', {'concept': 'Q15324'}]
SELECT DISTINCT ?d WHERE { resource:Q1754 property:P206 ?d . ?d rdf:type ontology:Q15324 }
Saltsjön
Saltsjön is located next to Stockholm
Saltsjön
action filter_type
action find
entity Stockholm
relation located next to body of water
type body of water
['Stockholm', 'located next to body of water', {'concept': 'body of water'}]
SELECT DISTINCT ?d WHERE { resource:Stockholm property:located_next_to_body_of_water ?d . ?d rdf:type ontology:body_of_water }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4176307
P17
Q15617994
USER
Which administrative territory does that body of water belong to ?
(Q4176307,P17,c(Q15617994))
action filter_type
action find
entity Q4176307
relation P17
type Q15617994
['Q4176307', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q4176307 property:P17 ?j . ?j rdf:type ontology:Q15617994 }
Saltsjön
action filter_type
action find
entity Saltsjön
relation country
type designation for an administrative territorial entity
['Saltsjön', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Saltsjön property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q34
SYSTEM
Sweden
Q34
(Q4176307,P17,c(Q15617994))
action filter_type
action find
entity Q4176307
relation P17
type Q15617994
That body of water belongs to the [ANSWER]
['Q4176307', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q4176307 property:P17 ?j . ?j rdf:type ontology:Q15617994 }
Sweden
That body of water belongs to the Sweden
Sweden
action filter_type
action find
entity Saltsjön
relation country
type designation for an administrative territorial entity
['Saltsjön', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Saltsjön property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4176307
P403
Q355304
USER
Which watercourses have their drainage ending at that body of water ?
(c(Q355304),P403,Q34)
action filter_type
action find_reverse
entity Q4176307
relation P403
type Q355304
[{'concept': 'Q355304'}, 'P403', 'Q34']
SELECT DISTINCT ?x WHERE { ?x property:P403 resource:Q4176307 . ?x rdf:type ontology:Q355304 }
Saltsjön
action filter_type
action find_reverse
entity Saltsjön
relation mouth of the watercourse
type watercourse
[{'concept': 'watercourse'}, 'mouth of the watercourse', 'Sweden']
SELECT DISTINCT ?x WHERE { ?x property:mouth_of_the_watercourse resource:Saltsjön . ?x rdf:type ontology:watercourse }
[]
watercourse
Q10466780 Q1479784
SYSTEM
Danvik canal, Norrström
Q10466780 Q1479784
(c(Q355304),P403,Q34)
action filter_type
action find_reverse
entity Q4176307
relation P403
type Q355304
[ANSWERS] have their drainage ending at that body of water
[{'concept': 'Q355304'}, 'P403', 'Q34']
SELECT DISTINCT ?x WHERE { ?x property:P403 resource:Q4176307 . ?x rdf:type ontology:Q355304 }
Danvik canal Norrström
Danvik canal and Norrström have their drainage ending at that body of water
Danvik canal Norrström
action filter_type
action find_reverse
entity Saltsjön
relation mouth of the watercourse
type watercourse
[{'concept': 'watercourse'}, 'mouth of the watercourse', 'Sweden']
SELECT DISTINCT ?x WHERE { ?x property:mouth_of_the_watercourse resource:Saltsjön . ?x rdf:type ontology:watercourse }
[]