Simple Question (Direct)
Simple Question
Q459893
P1303
Q34379
USER
Which musical instrument is played by Julia Rebekka Adler ?
(Q459893,P1303,c(Q34379))
action filter_type
action find
entity Q459893
relation P1303
type Q34379
['Q459893', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?c WHERE { resource:Q459893 property:P1303 ?c . ?c rdf:type ontology:Q34379 }
Julia Rebekka Adler
action filter_type
action find
entity Julia Rebekka Adler
relation instrument
type musical instrument
['Julia Rebekka Adler', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?c WHERE { resource:Julia_Rebekka_Adler property:instrument ?c . ?c rdf:type ontology:musical_instrument }
[]
musical instrument
Q80284
SYSTEM
viola
Q80284
(Q459893,P1303,c(Q34379))
action filter_type
action find
entity Q459893
relation P1303
type Q34379
[ANSWER] is played by Julia Rebekka Adler
['Q459893', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?c WHERE { resource:Q459893 property:P1303 ?c . ?c rdf:type ontology:Q34379 }
viola
Viola is played by Julia Rebekka Adler
viola
action filter_type
action find
entity Julia Rebekka Adler
relation instrument
type musical instrument
['Julia Rebekka Adler', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?c WHERE { resource:Julia_Rebekka_Adler property:instrument ?c . ?c rdf:type ontology:musical_instrument }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q459893
P19
Q515
USER
Which city was that person born at ?
(Q80284,P19,c(Q515))
action filter_type
action find
entity Q459893
relation P19
type Q515
['Q80284', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?e WHERE { resource:Q459893 property:P19 ?e . ?e rdf:type ontology:Q515 }
Julia Rebekka Adler
action filter_type
action find
entity Julia Rebekka Adler
relation place of birth
type city
['viola', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?e WHERE { resource:Julia_Rebekka_Adler property:place_of_birth ?e . ?e rdf:type ontology:city }
[]
city
Q2966
SYSTEM
Heidelberg
Q2966
(Q80284,P19,c(Q515))
action filter_type
action find
entity Q459893
relation P19
type Q515
That person was born in [ANSWER]
['Q80284', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?e WHERE { resource:Q459893 property:P19 ?e . ?e rdf:type ontology:Q515 }
Heidelberg
That person was born in Heidelberg
Heidelberg
action filter_type
action find
entity Julia Rebekka Adler
relation place of birth
type city
['viola', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?e WHERE { resource:Julia_Rebekka_Adler property:place_of_birth ?e . ?e rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2966
P740
Q43229
USER
What are the organizations that were formed at that city ?
(c(Q43229),P740,Q2966)
action filter_type
action find_reverse
entity Q2966
relation P740
type Q43229
[{'concept': 'Q43229'}, 'P740', 'Q2966']
SELECT DISTINCT ?l WHERE { ?l property:P740 resource:Q2966 . ?l rdf:type ontology:Q43229 }
Heidelberg
action filter_type
action find_reverse
entity Heidelberg
relation location of formation
type organization
[{'concept': 'organization'}, 'location of formation', 'Heidelberg']
SELECT DISTINCT ?l WHERE { ?l property:location_of_formation resource:Heidelberg . ?l rdf:type ontology:organization }
[]
organization
Q2570276 Q632233
SYSTEM
Wild, HeidelbergCement
Q2570276 Q632233
(c(Q43229),P740,Q2966)
action filter_type
action find_reverse
entity Q2966
relation P740
type Q43229
The organizations that were formed at that city are the [ANSWERS]
[{'concept': 'Q43229'}, 'P740', 'Q2966']
SELECT DISTINCT ?l WHERE { ?l property:P740 resource:Q2966 . ?l rdf:type ontology:Q43229 }
Wild HeidelbergCement
The organizations that were formed at that city are the Wild and HeidelbergCement
Wild HeidelbergCement
action filter_type
action find_reverse
entity Heidelberg
relation location of formation
type organization
[{'concept': 'organization'}, 'location of formation', 'Heidelberg']
SELECT DISTINCT ?l WHERE { ?l property:location_of_formation resource:Heidelberg . ?l rdf:type ontology:organization }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q319445 Q2966
P190
Q486972
USER
Which human settlements are partner towns of Heidelberg or Biłgoraj ?
OR((Q2966,P190,c(Q486972)), (Q319445,P190,c(Q486972)))
action filter_type
action union
action find
entity Q2966
relation P190
action find
entity Q319445
relation P190
type Q486972
{'OR': [['Q2966', 'P190', {'concept': 'Q486972'}], ['Q319445', 'P190', {'concept': 'Q486972'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q486972 . { { resource:Q319445 property:P190 ?h } UNION { resource:Q2966 property:P190 ?h } } }
Biłgoraj Heidelberg
action filter_type
action union
action find
entity Heidelberg
relation sister city
action find
entity Biłgoraj
relation sister city
type human settlement
{'OR': [['Heidelberg', 'sister city', {'concept': 'human settlement'}], ['Biłgoraj', 'sister city', {'concept': 'human settlement'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:human_settlement . { { resource:Biłgoraj property:sister_city ?h } UNION { resource:Heidelberg property:sister_city ?h } } }
[]
human settlement
Q14835 Q1193256
SYSTEM
Bautzen, Bilina
Q14835 Q1193256
OR((Q2966,P190,c(Q486972)), (Q319445,P190,c(Q486972)))
action filter_type
action union
action find
entity Q2966
relation P190
action find
entity Q319445
relation P190
type Q486972
[ANSWERS] are partner towns of Heidelberg or Biłgoraj
{'OR': [['Q2966', 'P190', {'concept': 'Q486972'}], ['Q319445', 'P190', {'concept': 'Q486972'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q486972 . { { resource:Q319445 property:P190 ?h } UNION { resource:Q2966 property:P190 ?h } } }
Bautzen Bilina
Bautzen and Bilina are partner towns of Heidelberg or Biłgoraj
Bautzen Bilina
action filter_type
action union
action find
entity Heidelberg
relation sister city
action find
entity Biłgoraj
relation sister city
type human settlement
{'OR': [['Heidelberg', 'sister city', {'concept': 'human settlement'}], ['Biłgoraj', 'sister city', {'concept': 'human settlement'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:human_settlement . { { resource:Biłgoraj property:sister_city ?h } UNION { resource:Heidelberg property:sister_city ?h } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P190
Q515 Q56061 Q13220204
USER
Which cities are the sister cities of exactly 3 administrative territories and administrative country subdivisions ?
(c(Q56061)|c(Q13220204),P190,c(Q515))
action equal
action union
action find_reverse_tuple_counts
relation P190
type Q515
type Q56061
action find_reverse_tuple_counts
relation P190
type Q515
type Q13220204
value 3
[[{'concept': 'Q56061'}, {'concept': 'Q13220204'}], 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) ?v WHERE { { ?v rdf:type ontology:Q515 . ?f rdf:type ontology:Q56061 . ?f property:P190 ?v } UNION { ?f property:P190 ?v . ?f rdf:type ontology:Q13220204 . ?v rdf:type ontology:Q515 } } GROUP BY ?v } . FILTER ( ?p = 3 ) }
action equal
action union
action find_reverse_tuple_counts
relation sister city
type city
type administrative territorial entity
action find_reverse_tuple_counts
relation sister city
type city
type second-level administrative country subdivision
value 3
[[{'concept': 'administrative territorial entity'}, {'concept': 'second-level administrative country subdivision'}], 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) ?v WHERE { { ?v rdf:type ontology:city . ?f rdf:type ontology:administrative_territorial_entity . ?f property:sister_city ?v } UNION { ?f property:sister_city ?v . ?f rdf:type ontology:second-level_administrative_country_subdivision . ?v rdf:type ontology:city } } GROUP BY ?v } . FILTER ( ?p = 3 ) }
[]
city administrative territorial entity second-level administrative country subdivision
Q3014 Q392429 Q2936
SYSTEM
Wolfsburg, Šternberk, Oldenburg
Q841296 Q2936 Q240504 Q854996 Q281371 Q191120 Q383850 Q57958 Q57818 Q842961 Q329768 Q41278 Q193719 Q74957 Q216077 Q72818 Q1844 Q10389 Q385461 Q214945 Q58401 Q167668 Q478038 Q207406 Q373101 Q137271 Q987496 Q180379 Q404429 Q329775 Q76001 Q56759 Q1410 Q58570 Q151958 Q327764 Q740853 Q842976 Q954611 Q3955 Q14169 Q335506 Q4174 Q1822 Q999916 Q656603 Q646850 Q790370 Q3826 Q843014 Q59095 Q72778 Q183584 Q187136 Q3014 Q146317 Q911634 Q189769 Q653364 Q489147 Q629849 Q3936 Q146033 Q3200 Q66485 Q842925 Q392429 Q225100
(c(Q56061)|c(Q13220204),P190,c(Q515))
action equal
action union
action find_reverse_tuple_counts
relation P190
type Q515
type Q56061
action find_reverse_tuple_counts
relation P190
type Q515
type Q13220204
value 3
[ANSWERS] are the sister cities of exactly 3 administrative territories and administrative country subdivisions
[[{'concept': 'Q56061'}, {'concept': 'Q13220204'}], 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) ?v WHERE { { ?v rdf:type ontology:Q515 . ?f rdf:type ontology:Q56061 . ?f property:P190 ?v } UNION { ?f property:P190 ?v . ?f rdf:type ontology:Q13220204 . ?v rdf:type ontology:Q515 } } GROUP BY ?v } . FILTER ( ?p = 3 ) }
Příbram Oldenburg Makó Szerencs Jászberény Jēkabpils Litovel Zhenjiang Huai'an Mezőberény Tata Ulsan Cheb Anshan Jiujiang Haiphong Vaduz Bandung Ōmihachiman Pápa Shijiazhuang Liepāja Kiskunfélegyháza Mosonmagyaróvár Rizhao Kota Kinabalu Kralupy nad Vltavou Rēzekne Jiaozuo Kiskunhalas San Pablo Olongapo Gibraltar Handan Yueyang Prachatice Szigetszentmiklós Mátészalka Jeseník Weimar Singkawang Salto Emden Baguio Vysoké Mýto Jičín Kiskőrös Barcs Muscat Szarvas Zhuhai Taiyuan Lanzhou Luoyang Wolfsburg Veszprém Kisújszállás Salgótarján Atami Schmalkalden Hatvan Bamberg Zamárdi Salzgitter Jaipur Edelény Šternberk Bicaz
Wolfsburg, Šternberk and Oldenburg are the sister cities of exactly 3 administrative territories and administrative country subdivisions
Wolfsburg Šternberk Oldenburg
action equal
action union
action find_reverse_tuple_counts
relation sister city
type city
type administrative territorial entity
action find_reverse_tuple_counts
relation sister city
type city
type second-level administrative country subdivision
value 3
[[{'concept': 'administrative territorial entity'}, {'concept': 'second-level administrative country subdivision'}], 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) ?v WHERE { { ?v rdf:type ontology:city . ?f rdf:type ontology:administrative_territorial_entity . ?f property:sister_city ?v } UNION { ?f property:sister_city ?v . ?f rdf:type ontology:second-level_administrative_country_subdivision . ?v rdf:type ontology:city } } GROUP BY ?v } . FILTER ( ?p = 3 ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q3014 Q392429 Q2936
P190
Q56061
USER
Which administrative territories are the sister cities of Wolfsburg, Šternberk and Oldenburg ?
(Q3014,P190,c(Q56061)) (Q392429,P190,c(Q56061)) (Q2936,P190,c(Q56061))
action union
action filter_type
action find
entity Q3014
relation P190
type Q56061
action filter_type
action find
entity Q392429
relation P190
type Q56061
action filter_type
action find
entity Q2936
relation P190
type Q56061
['Q3014', 'P190', {'concept': 'Q56061'}] ['Q392429', 'P190', {'concept': 'Q56061'}] ['Q2936', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { { resource:Q392429 property:P190 ?s . ?s rdf:type ontology:Q56061 } UNION { resource:Q3014 property:P190 ?s . ?s rdf:type ontology:Q56061 } }
Wolfsburg Šternberk Oldenburg
action union
action filter_type
action find
entity Wolfsburg
relation sister city
type administrative territorial entity
action filter_type
action find
entity Šternberk
relation sister city
type administrative territorial entity
action filter_type
action find
entity Oldenburg
relation sister city
type administrative territorial entity
['Wolfsburg', 'sister city', {'concept': 'administrative territorial entity'}] ['Šternberk', 'sister city', {'concept': 'administrative territorial entity'}] ['Oldenburg', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { resource:Šternberk property:sister_city ?s . ?s rdf:type ontology:administrative_territorial_entity } UNION { resource:Wolfsburg property:sister_city ?s . ?s rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity
Q1341 Q749 Q5168
SYSTEM
Tolyatti, Groningen, Makhachkala
Q203889 Q1341 Q7072 Q524939 Q279005 Q489685 Q5168 Q2321706 Q749
(Q3014,P190,c(Q56061)) (Q392429,P190,c(Q56061)) (Q2936,P190,c(Q56061))
action union
action filter_type
action find
entity Q3014
relation P190
type Q56061
action filter_type
action find
entity Q392429
relation P190
type Q56061
action filter_type
action find
entity Q2936
relation P190
type Q56061
[ANSWERS] are the sister cities of Wolfsburg, Šternberk and Oldenburg
['Q3014', 'P190', {'concept': 'Q56061'}] ['Q392429', 'P190', {'concept': 'Q56061'}] ['Q2936', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { { resource:Q392429 property:P190 ?s . ?s rdf:type ontology:Q56061 } UNION { resource:Q3014 property:P190 ?s . ?s rdf:type ontology:Q56061 } }
Luton Tolyatti Halberstadt Lorsch Dobšiná Günzburg Makhachkala Kingston upon Thames Groningen
Tolyatti, Groningen and Makhachkala are the sister cities of Wolfsburg, Šternberk and Oldenburg
Tolyatti Groningen Makhachkala
action union
action filter_type
action find
entity Wolfsburg
relation sister city
type administrative territorial entity
action filter_type
action find
entity Šternberk
relation sister city
type administrative territorial entity
action filter_type
action find
entity Oldenburg
relation sister city
type administrative territorial entity
['Wolfsburg', 'sister city', {'concept': 'administrative territorial entity'}] ['Šternberk', 'sister city', {'concept': 'administrative territorial entity'}] ['Oldenburg', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { resource:Šternberk property:sister_city ?s . ?s rdf:type ontology:administrative_territorial_entity } UNION { resource:Wolfsburg property:sister_city ?s . ?s rdf:type ontology:administrative_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1341 Q749 Q5168
P190
Q56061
USER
Which administrative territories are twin cities of Tolyatti, Groningen and Makhachkala ?
(Q1341,P190,c(Q56061)) (Q749,P190,c(Q56061)) (Q5168,P190,c(Q56061))
action union
action filter_type
action find
entity Q1341
relation P190
type Q56061
action filter_type
action find
entity Q749
relation P190
type Q56061
action filter_type
action find
entity Q5168
relation P190
type Q56061
['Q1341', 'P190', {'concept': 'Q56061'}] ['Q749', 'P190', {'concept': 'Q56061'}] ['Q5168', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { VALUES ( ?e ) { ( resource:Q1341 ) ( resource:Q749 ) } . ?e property:P190 ?h }
Tolyatti Groningen Makhachkala
action union
action filter_type
action find
entity Tolyatti
relation sister city
type administrative territorial entity
action filter_type
action find
entity Groningen
relation sister city
type administrative territorial entity
action filter_type
action find
entity Makhachkala
relation sister city
type administrative territorial entity
['Tolyatti', 'sister city', {'concept': 'administrative territorial entity'}] ['Groningen', 'sister city', {'concept': 'administrative territorial entity'}] ['Makhachkala', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { VALUES ( ?e ) { ( resource:Tolyatti ) ( resource:Groningen ) } . ?e property:sister_city ?h }
[]
administrative territorial entity
Q1829 Q1770 Q6221
SYSTEM
Kaliningrad, Tallinn, Brescia
Q192926 Q13329 Q490584 Q588 Q1763 Q25331 Q1770 Q1829 Q1425428 Q5239 Q192888 Q34370 Q219671 Q6221 Q205942 Q199723 Q312759
(Q1341,P190,c(Q56061)) (Q749,P190,c(Q56061)) (Q5168,P190,c(Q56061))
action union
action filter_type
action find
entity Q1341
relation P190
type Q56061
action filter_type
action find
entity Q749
relation P190
type Q56061
action filter_type
action find
entity Q5168
relation P190
type Q56061
[ANSWERS] are twin cities of Tolyatti, Groningen and Makhachkala
['Q1341', 'P190', {'concept': 'Q56061'}] ['Q749', 'P190', {'concept': 'Q56061'}] ['Q5168', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { VALUES ( ?e ) { ( resource:Q1341 ) ( resource:Q749 ) } . ?e property:P190 ?h }
Kazanlak Piacenza Flint Katowice Murmansk Odense Tallinn Kaliningrad Newcastle upon Tyne Vladikavkaz Smolyan Rotterdam Ndola Brescia Yalova Balıkesir Biskra
Kaliningrad, Tallinn and Brescia are twin cities of Tolyatti, Groningen and Makhachkala
Kaliningrad Tallinn Brescia
action union
action filter_type
action find
entity Tolyatti
relation sister city
type administrative territorial entity
action filter_type
action find
entity Groningen
relation sister city
type administrative territorial entity
action filter_type
action find
entity Makhachkala
relation sister city
type administrative territorial entity
['Tolyatti', 'sister city', {'concept': 'administrative territorial entity'}] ['Groningen', 'sister city', {'concept': 'administrative territorial entity'}] ['Makhachkala', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { VALUES ( ?e ) { ( resource:Tolyatti ) ( resource:Groningen ) } . ?e property:sister_city ?h }
[]