Simple Question (Direct)
Simple Question
Q471147
P937
Q515
USER
Which are the work locations of Johann Heinrich Roos ?
(Q471147,P937,c(Q515))
action filter_type
action find
entity Q471147
relation P937
type Q515
['Q471147', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?a WHERE { resource:Q471147 property:P937 ?a . ?a rdf:type ontology:Q515 }
Johann Heinrich Roos
action filter_type
action find
entity Johann Heinrich Roos
relation work location
type city
['Johann Heinrich Roos', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?a WHERE { resource:Johann_Heinrich_Roos property:work_location ?a . ?a rdf:type ontology:city }
[]
city
Q1720 Q1794
SYSTEM
Mainz, Frankfurt
Q1720 Q1794
(Q471147,P937,c(Q515))
action filter_type
action find
entity Q471147
relation P937
type Q515
[ANSWERS] are the work locations of Johann Heinrich Roos
['Q471147', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?a WHERE { resource:Q471147 property:P937 ?a . ?a rdf:type ontology:Q515 }
Mainz Frankfurt
Mainz and Frankfurt are the work locations of Johann Heinrich Roos
Mainz Frankfurt
action filter_type
action find
entity Johann Heinrich Roos
relation work location
type city
['Johann Heinrich Roos', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?a WHERE { resource:Johann_Heinrich_Roos property:work_location ?a . ?a rdf:type ontology:city }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1720 Q1794
P190
Q56061
USER
Which administrative territories are twin towns of Mainz and Frankfurt ?
(Q1720,P190,c(Q56061)) (Q1794,P190,c(Q56061))
action union
action filter_type
action find
entity Q1720
relation P190
type Q56061
action filter_type
action find
entity Q1794
relation P190
type Q56061
['Q1720', 'P190', {'concept': 'Q56061'}] ['Q1794', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { VALUES ( ?u ) { ( resource:Q1720 ) ( resource:Q1794 ) } . ?u property:P190 ?k }
Mainz Frankfurt
action union
action filter_type
action find
entity Mainz
relation sister city
type administrative territorial entity
action filter_type
action find
entity Frankfurt
relation sister city
type administrative territorial entity
['Mainz', 'sister city', {'concept': 'administrative territorial entity'}] ['Frankfurt', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { VALUES ( ?u ) { ( resource:Mainz ) ( resource:Frankfurt ) } . ?u property:sister_city ?k }
[]
administrative territorial entity
Q1085 Q490 Q1781
SYSTEM
Prague, Milan, Budapest
Q474724 Q41621 Q2598 Q9248 Q43668 Q8818 Q1729 Q1352 Q33935 Q612 Q490 Q1781 Q85 Q205648 Q1085 Q172
(Q1720,P190,c(Q56061)) (Q1794,P190,c(Q56061))
action union
action filter_type
action find
entity Q1720
relation P190
type Q56061
action filter_type
action find
entity Q1794
relation P190
type Q56061
[ANSWERS] are twin towns of Mainz and Frankfurt
['Q1720', 'P190', {'concept': 'Q56061'}] ['Q1794', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { VALUES ( ?u ) { ( resource:Q1720 ) ( resource:Q1794 ) } . ?u property:P190 ?k }
Rodeneck Haifa Watford Baku Louisville Valencia Erfurt Chennai Tel Aviv Dubai Milan Budapest Cairo Granada Prague Toronto
Prague, Milan and Budapest are twin towns of Mainz and Frankfurt
Prague Milan Budapest
action union
action filter_type
action find
entity Mainz
relation sister city
type administrative territorial entity
action filter_type
action find
entity Frankfurt
relation sister city
type administrative territorial entity
['Mainz', 'sister city', {'concept': 'administrative territorial entity'}] ['Frankfurt', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { VALUES ( ?u ) { ( resource:Mainz ) ( resource:Frankfurt ) } . ?u property:sister_city ?k }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q471147
P7
Q502895
USER
Who is Johann Heinrich Roos a sibling of ?
(Q471147,P7,c(Q502895))
action filter_type
action find
entity Q471147
relation P7
type Q502895
['Q471147', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . resource:Q471147 property:P7 ?h }
Johann Heinrich Roos
action filter_type
action find
entity Johann Heinrich Roos
relation brother
type common name
['Johann Heinrich Roos', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . resource:Johann_Heinrich_Roos property:brother ?h }
[]
common name
Q870942
SYSTEM
Theodor Roos
Q870942
(Q471147,P7,c(Q502895))
action filter_type
action find
entity Q471147
relation P7
type Q502895
Johann Heinrich Roos a sibling of is h [ANSWER]
['Q471147', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . resource:Q471147 property:P7 ?h }
Theodor Roos
Johann Heinrich Roos a sibling of is h Theodor Roos
Theodor Roos
action filter_type
action find
entity Johann Heinrich Roos
relation brother
type common name
['Johann Heinrich Roos', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . resource:Johann_Heinrich_Roos property:brother ?h }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q870942
P21
Q290
USER
Which sex does that person belong to ?
(Q870942,P21,c(Q290))
action filter_type
action find
entity Q870942
relation P21
type Q290
['Q870942', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q290 . resource:Q870942 property:P21 ?g }
Theodor Roos
action filter_type
action find
entity Theodor Roos
relation gender
type sex
['Theodor Roos', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:sex . resource:Theodor_Roos property:gender ?g }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q870942,P21,c(Q290))
action filter_type
action find
entity Q870942
relation P21
type Q290
That person belongs to [ANSWER]
['Q870942', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q290 . resource:Q870942 property:P21 ?g }
male
That person belongs to male
male
action filter_type
action find
entity Theodor Roos
relation gender
type sex
['Theodor Roos', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:sex . resource:Theodor_Roos property:gender ?g }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1085
P1376
Q2221906
USER
Which geographic location has Prague as its capital ?
(Q1085,P1376,c(Q2221906))
action filter_type
action find
entity Q1085
relation P1376
type Q2221906
['Q1085', 'P1376', {'concept': 'Q2221906'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q2221906 . resource:Q1085 property:P1376 ?w }
Prague
action filter_type
action find
entity Prague
relation capital of
type geographic location
['Prague', 'capital of', {'concept': 'geographic location'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:geographic_location . resource:Prague property:capital_of ?w }
[]
geographic location
Q39193
SYSTEM
Bohemia
Q39193
(Q1085,P1376,c(Q2221906))
action filter_type
action find
entity Q1085
relation P1376
type Q2221906
[ANSWER] has Prague as its capital
['Q1085', 'P1376', {'concept': 'Q2221906'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q2221906 . resource:Q1085 property:P1376 ?w }
Bohemia
Bohemia has Prague as its capital
Bohemia
action filter_type
action find
entity Prague
relation capital of
type geographic location
['Prague', 'capital of', {'concept': 'geographic location'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:geographic_location . resource:Prague property:capital_of ?w }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1085
P206
Q355304
USER
Which watercourse is situated close to Prague ?
(Q1085,P206,c(Q355304))
action filter_type
action find
entity Q1085
relation P206
type Q355304
['Q1085', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?t WHERE { resource:Q1085 property:P206 ?t . ?t rdf:type ontology:Q355304 }
Prague
action filter_type
action find
entity Prague
relation located next to body of water
type watercourse
['Prague', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?t WHERE { resource:Prague property:located_next_to_body_of_water ?t . ?t rdf:type ontology:watercourse }
[]
watercourse
Q131574
SYSTEM
Vltava
Q131574
(Q1085,P206,c(Q355304))
action filter_type
action find
entity Q1085
relation P206
type Q355304
[ANSWER] is situated close to Prague
['Q1085', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?t WHERE { resource:Q1085 property:P206 ?t . ?t rdf:type ontology:Q355304 }
Vltava
Vltava is situated close to Prague
Vltava
action filter_type
action find
entity Prague
relation located next to body of water
type watercourse
['Prague', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?t WHERE { resource:Prague property:located_next_to_body_of_water ?t . ?t rdf:type ontology:watercourse }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q131574
P403
Q355304
USER
Which watercourses ultimately merges into that one ?
(c(Q355304),P403,Q131574)
action filter_type
action find_reverse
entity Q131574
relation P403
type Q355304
[{'concept': 'Q355304'}, 'P403', 'Q131574']
SELECT DISTINCT ?n WHERE { ?n property:P403 resource:Q131574 . ?n rdf:type ontology:Q355304 }
Vltava
action filter_type
action find_reverse
entity Vltava
relation mouth of the watercourse
type watercourse
[{'concept': 'watercourse'}, 'mouth of the watercourse', 'Vltava']
SELECT DISTINCT ?n WHERE { ?n property:mouth_of_the_watercourse resource:Vltava . ?n rdf:type ontology:watercourse }
[]
watercourse
Q279943 Q38771 Q827033
SYSTEM
Lužnice, Sázava, Berounka
Q894740 Q561452 Q827033 Q10949644 Q1507602 Q38771 Q339660 Q20658523 Q688880 Q279943 Q2162612 Q19297637
(c(Q355304),P403,Q131574)
action filter_type
action find_reverse
entity Q131574
relation P403
type Q355304
[ANSWERS] ultimately merge into that one
[{'concept': 'Q355304'}, 'P403', 'Q131574']
SELECT DISTINCT ?n WHERE { ?n property:P403 resource:Q131574 . ?n rdf:type ontology:Q355304 }
Botič Kalte Moldau Berounka Polečnice Otava Sázava Čertovka Strážný potok Malše Lužnice Rokytka Olšina
Lužnice, Sázava and Berounka ultimately merge into that one
Lužnice Sázava Berounka
action filter_type
action find_reverse
entity Vltava
relation mouth of the watercourse
type watercourse
[{'concept': 'watercourse'}, 'mouth of the watercourse', 'Vltava']
SELECT DISTINCT ?n WHERE { ?n property:mouth_of_the_watercourse resource:Vltava . ?n rdf:type ontology:watercourse }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q279943 Q38771 Q827033
P403
Q355304
USER
Which watercourses flows into Lužnice, Sázava and Berounka ?
(c(Q355304),P403,Q279943) (c(Q355304),P403,Q38771) (c(Q355304),P403,Q827033)
action union
action filter_type
action find_reverse
entity Q279943
relation P403
type Q355304
action filter_type
action find_reverse
entity Q38771
relation P403
type Q355304
action filter_type
action find_reverse
entity Q827033
relation P403
type Q355304
[{'concept': 'Q355304'}, 'P403', 'Q279943'] [{'concept': 'Q355304'}, 'P403', 'Q38771'] [{'concept': 'Q355304'}, 'P403', 'Q827033']
SELECT DISTINCT ?i WHERE { { ?i property:P403 resource:Q279943 . ?i rdf:type ontology:Q355304 } UNION { ?i property:P403 resource:Q38771 . ?i rdf:type ontology:Q355304 } }
Lužnice Sázava Berounka
action union
action filter_type
action find_reverse
entity Lužnice
relation mouth of the watercourse
type watercourse
action filter_type
action find_reverse
entity Sázava
relation mouth of the watercourse
type watercourse
action filter_type
action find_reverse
entity Berounka
relation mouth of the watercourse
type watercourse
[{'concept': 'watercourse'}, 'mouth of the watercourse', 'Lužnice'] [{'concept': 'watercourse'}, 'mouth of the watercourse', 'Sázava'] [{'concept': 'watercourse'}, 'mouth of the watercourse', 'Berounka']
SELECT DISTINCT ?i WHERE { { ?i property:mouth_of_the_watercourse resource:Lužnice . ?i rdf:type ontology:watercourse } UNION { ?i property:mouth_of_the_watercourse resource:Sázava . ?i rdf:type ontology:watercourse } }
[]
watercourse
Q570008 Q881514 Q393622
SYSTEM
Nežárka, Blanice, Želivka
Q570008 Q881514 Q393622 Q460915 Q330277
(c(Q355304),P403,Q279943) (c(Q355304),P403,Q38771) (c(Q355304),P403,Q827033)
action union
action filter_type
action find_reverse
entity Q279943
relation P403
type Q355304
action filter_type
action find_reverse
entity Q38771
relation P403
type Q355304
action filter_type
action find_reverse
entity Q827033
relation P403
type Q355304
[ANSWERS] flow into Lužnice, Sázava and Berounka
[{'concept': 'Q355304'}, 'P403', 'Q279943'] [{'concept': 'Q355304'}, 'P403', 'Q38771'] [{'concept': 'Q355304'}, 'P403', 'Q827033']
SELECT DISTINCT ?i WHERE { { ?i property:P403 resource:Q279943 . ?i rdf:type ontology:Q355304 } UNION { ?i property:P403 resource:Q38771 . ?i rdf:type ontology:Q355304 } }
Nežárka Blanice Želivka Litavka Úslava
Nežárka, Blanice and Želivka flow into Lužnice, Sázava and Berounka
Nežárka Blanice Želivka
action union
action filter_type
action find_reverse
entity Lužnice
relation mouth of the watercourse
type watercourse
action filter_type
action find_reverse
entity Sázava
relation mouth of the watercourse
type watercourse
action filter_type
action find_reverse
entity Berounka
relation mouth of the watercourse
type watercourse
[{'concept': 'watercourse'}, 'mouth of the watercourse', 'Lužnice'] [{'concept': 'watercourse'}, 'mouth of the watercourse', 'Sázava'] [{'concept': 'watercourse'}, 'mouth of the watercourse', 'Berounka']
SELECT DISTINCT ?i WHERE { { ?i property:mouth_of_the_watercourse resource:Lužnice . ?i rdf:type ontology:watercourse } UNION { ?i property:mouth_of_the_watercourse resource:Sázava . ?i rdf:type ontology:watercourse } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q393622
P974
Q355304
USER
Which watercourse has that one as its tributary ?
(c(Q355304),P974,Q393622)
action filter_type
action find_reverse
entity Q393622
relation P974
type Q355304
[{'concept': 'Q355304'}, 'P974', 'Q393622']
SELECT DISTINCT ?y WHERE { ?y property:P974 resource:Q393622 . ?y rdf:type ontology:Q355304 }
Želivka
action filter_type
action find_reverse
entity Želivka
relation tributary
type watercourse
[{'concept': 'watercourse'}, 'tributary', 'Želivka']
SELECT DISTINCT ?y WHERE { ?y property:tributary resource:Želivka . ?y rdf:type ontology:watercourse }
[]
watercourse
Clarification for simple ques.
Q393622
SYSTEM
Did you mean Želivka ?
Q570008 Q881514 Q393622
(c(Q355304),P974,Q570008) (c(Q355304),P974,Q881514) (c(Q355304),P974,Q393622)
[ANSWER]
[{'concept': 'Q355304'}, 'P974', 'Q570008'] [{'concept': 'Q355304'}, 'P974', 'Q881514'] [{'concept': 'Q355304'}, 'P974', 'Q393622']
SELECT DISTINCT ?y WHERE { ?y property:P974 resource:Q393622 . ?y rdf:type ontology:Q355304 }
Nežárka Blanice Želivka
Did you mean Želivka ?
Želivka
[{'concept': 'watercourse'}, 'tributary', 'Nežárka'] [{'concept': 'watercourse'}, 'tributary', 'Blanice'] [{'concept': 'watercourse'}, 'tributary', 'Želivka']
SELECT DISTINCT ?y WHERE { ?y property:tributary resource:Želivka . ?y rdf:type ontology:watercourse }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q355304),P974,Q393622)
[{'concept': 'Q355304'}, 'P974', 'Q393622']
[{'concept': 'watercourse'}, 'tributary', 'Želivka']
[]
Q38771
SYSTEM
Sázava
Q38771
(c(Q355304),P974,Q393622)
action filter_type
action find_reverse
entity Q393622
relation P974
type Q355304
[ANSWER] has that one as its tributary
[{'concept': 'Q355304'}, 'P974', 'Q393622']
SELECT DISTINCT ?y WHERE { ?y property:P974 resource:Q393622 . ?y rdf:type ontology:Q355304 }
Sázava
Sázava has that one as its tributary
Sázava
action filter_type
action find_reverse
entity Želivka
relation tributary
type watercourse
[{'concept': 'watercourse'}, 'tributary', 'Želivka']
SELECT DISTINCT ?y WHERE { ?y property:tributary resource:Želivka . ?y rdf:type ontology:watercourse }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q38771
P138
Q17444909
USER
Which astronomical object type is the eponym of that watercourse ?
(c(Q17444909),P138,Q38771)
action filter_type
action find_reverse
entity Q38771
relation P138
type Q17444909
[{'concept': 'Q17444909'}, 'P138', 'Q38771']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q17444909 . ?m property:P138 resource:Q38771 }
Sázava
action filter_type
action find_reverse
entity Sázava
relation named after
type astronomical object type
[{'concept': 'astronomical object type'}, 'named after', 'Sázava']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:astronomical_object_type . ?m property:named_after resource:Sázava }
[]
astronomical object type
Q147391
SYSTEM
2081 Sázava
Q147391
(c(Q17444909),P138,Q38771)
action filter_type
action find_reverse
entity Q38771
relation P138
type Q17444909
[ANSWER] is the eponym of that watercourse
[{'concept': 'Q17444909'}, 'P138', 'Q38771']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q17444909 . ?m property:P138 resource:Q38771 }
2081 Sázava
2081 Sázava is the eponym of that watercourse
2081 Sázava
action filter_type
action find_reverse
entity Sázava
relation named after
type astronomical object type
[{'concept': 'astronomical object type'}, 'named after', 'Sázava']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:astronomical_object_type . ?m property:named_after resource:Sázava }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q13123814 Q870942
P27
Q15617994
USER
Which administrative territories are Theodor Roos or Mad Ice a civilian of ?
OR((Q870942,P27,c(Q15617994)), (Q13123814,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q870942
relation P27
action find
entity Q13123814
relation P27
type Q15617994
{'OR': [['Q870942', 'P27', {'concept': 'Q15617994'}], ['Q13123814', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?p ) { ( resource:Q13123814 ) ( resource:Q870942 ) } . ?p property:P27 ?a } . ?a rdf:type ontology:Q15617994 }
Mad Ice Theodor Roos
action filter_type
action union
action find
entity Theodor Roos
relation country of citizenship
action find
entity Mad Ice
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Theodor Roos', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Mad Ice', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?p ) { ( resource:Mad_Ice ) ( resource:Theodor_Roos ) } . ?p property:country_of_citizenship ?a } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q33 Q55
SYSTEM
Finland, Netherlands
Q33 Q55
OR((Q870942,P27,c(Q15617994)), (Q13123814,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q870942
relation P27
action find
entity Q13123814
relation P27
type Q15617994
[ANSWERS] are Theodor Roos or Mad Ice a civilian of
{'OR': [['Q870942', 'P27', {'concept': 'Q15617994'}], ['Q13123814', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?p ) { ( resource:Q13123814 ) ( resource:Q870942 ) } . ?p property:P27 ?a } . ?a rdf:type ontology:Q15617994 }
Finland Netherlands
Finland and Netherlands are Theodor Roos or Mad Ice a civilian of
Finland Netherlands
action filter_type
action union
action find
entity Theodor Roos
relation country of citizenship
action find
entity Mad Ice
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Theodor Roos', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Mad Ice', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?p ) { ( resource:Mad_Ice ) ( resource:Theodor_Roos ) } . ?p property:country_of_citizenship ?a } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]