Simple Question (Direct)
Simple Question
Q1599648
P20
Q56061
USER
Where did Heinrich von Reder die ?
(Q1599648,P20,c(Q56061))
action filter_type
action find
entity Q1599648
relation P20
type Q56061
['Q1599648', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q1599648 property:P20 ?w . ?w rdf:type ontology:Q56061 }
Heinrich von Reder
action filter_type
action find
entity Heinrich von Reder
relation place of death
type administrative territorial entity
['Heinrich von Reder', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Heinrich_von_Reder property:place_of_death ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1726
SYSTEM
Munich
Q1726
(Q1599648,P20,c(Q56061))
action filter_type
action find
entity Q1599648
relation P20
type Q56061
Heinrich von Reder died in [ANSWER]
['Q1599648', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q1599648 property:P20 ?w . ?w rdf:type ontology:Q56061 }
Munich
Heinrich von Reder died in Munich
Munich
action filter_type
action find
entity Heinrich von Reder
relation place of death
type administrative territorial entity
['Heinrich von Reder', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Heinrich_von_Reder property:place_of_death ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1599648
P27
Q1048835
USER
Which political territory does that person belong to ?
(Q1726,P27,c(Q1048835))
action filter_type
action find
entity Q1599648
relation P27
type Q1048835
['Q1726', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q1599648 property:P27 ?l . ?l rdf:type ontology:Q1048835 }
Heinrich von Reder
action filter_type
action find
entity Heinrich von Reder
relation country of citizenship
type political territorial entity
['Munich', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Heinrich_von_Reder property:country_of_citizenship ?l . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q1726,P27,c(Q1048835))
action filter_type
action find
entity Q1599648
relation P27
type Q1048835
That person belongs to the [ANSWER]
['Q1726', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q1599648 property:P27 ?l . ?l rdf:type ontology:Q1048835 }
Germany
That person belongs to the Germany
Germany
action filter_type
action find
entity Heinrich von Reder
relation country of citizenship
type political territorial entity
['Munich', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Heinrich_von_Reder property:country_of_citizenship ?l . ?l rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q183 Q1011
P530
Q15617994
USER
Does Cape Verde have diplomatic relationships with Germany ?
(Q183,P530,Q1011)
action is_in
entity Q1011
action find
entity Q183
relation P530
['Q183', 'P530', 'Q1011']
ASK WHERE { resource:Q183 property:P530 resource:Q1011 }
Germany Cape Verde
action is_in
entity Cape Verde
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Cape Verde']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Cape_Verde }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q183,P530,Q1011)
action is_in
entity Q1011
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q1011']
ASK WHERE { resource:Q183 property:P530 resource:Q1011 }
Yes
action is_in
entity Cape Verde
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Cape Verde']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Cape_Verde }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q1599065 Q1011
P530 P27
Q1048835
USER
Which political territories holds diplomatic relationship with Cape Verde and do Peter Solderer belong to ?
AND((Q1011,P530,c(Q1048835)), (Q1599065,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q1011
relation P530
action find
entity Q1599065
relation P27
type Q1048835
{'AND': [['Q1011', 'P530', {'concept': 'Q1048835'}], ['Q1599065', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q1048835 . resource:Q1011 property:P530 ?q . resource:Q1599065 property:P27 ?q }
Peter Solderer Cape Verde
action filter_type
action intersection
action find
entity Cape Verde
relation diplomatic relation
action find
entity Peter Solderer
relation country of citizenship
type political territorial entity
{'AND': [['Cape Verde', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Peter Solderer', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:political_territorial_entity . resource:Cape_Verde property:diplomatic_relation ?q . resource:Peter_Solderer property:country_of_citizenship ?q }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
AND((Q1011,P530,c(Q1048835)), (Q1599065,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q1011
relation P530
action find
entity Q1599065
relation P27
type Q1048835
[ANSWER] holds diplomatic relationship with Cape Verde and do Peter Solderer belong to
{'AND': [['Q1011', 'P530', {'concept': 'Q1048835'}], ['Q1599065', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q1048835 . resource:Q1011 property:P530 ?q . resource:Q1599065 property:P27 ?q }
Germany
Germany holds diplomatic relationship with Cape Verde and do Peter Solderer belong to
Germany
action filter_type
action intersection
action find
entity Cape Verde
relation diplomatic relation
action find
entity Peter Solderer
relation country of citizenship
type political territorial entity
{'AND': [['Cape Verde', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Peter Solderer', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:political_territorial_entity . resource:Cape_Verde property:diplomatic_relation ?q . resource:Peter_Solderer property:country_of_citizenship ?q }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q183 Q1213665
P495
Q838948
USER
Does Die Jagd nach dem Stiefel originate at that political territory ?
(Q1213665,P495,Q183)
action is_in
entity Q183
action find
entity Q1213665
relation P495
['Q1213665', 'P495', 'Q183']
ASK WHERE { resource:Q1213665 property:P495 resource:Q183 }
Germany Die Jagd nach dem Stiefel
action is_in
entity Germany
action find
entity Die Jagd nach dem Stiefel
relation country of origin
['Die Jagd nach dem Stiefel', 'country of origin', 'Germany']
ASK WHERE { resource:Die_Jagd_nach_dem_Stiefel property:country_of_origin resource:Germany }
[]
work of art
SYSTEM
YES
(Q1213665,P495,Q183)
action is_in
entity Q183
action find
entity Q1213665
relation P495
[ANSWER]
['Q1213665', 'P495', 'Q183']
ASK WHERE { resource:Q1213665 property:P495 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Die Jagd nach dem Stiefel
relation country of origin
['Die Jagd nach dem Stiefel', 'country of origin', 'Germany']
ASK WHERE { resource:Die_Jagd_nach_dem_Stiefel property:country_of_origin resource:Germany }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q21033852 Q1599065
P27
Q1048835
USER
Which political territories are the countries of citizenship of Peter Solderer and Alfred Müller-Edler ?
AND((Q1599065,P27,c(Q1048835)), (Q21033852,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q1599065
relation P27
action find
entity Q21033852
relation P27
type Q1048835
{'AND': [['Q1599065', 'P27', {'concept': 'Q1048835'}], ['Q21033852', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q1048835 . resource:Q1599065 property:P27 ?x . resource:Q21033852 property:P27 ?x }
Alfred Müller-Edler Peter Solderer
action filter_type
action intersection
action find
entity Peter Solderer
relation country of citizenship
action find
entity Alfred Müller-Edler
relation country of citizenship
type political territorial entity
{'AND': [['Peter Solderer', 'country of citizenship', {'concept': 'political territorial entity'}], ['Alfred Müller-Edler', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:political_territorial_entity . resource:Peter_Solderer property:country_of_citizenship ?x . resource:Alfred_Müller-Edler property:country_of_citizenship ?x }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
AND((Q1599065,P27,c(Q1048835)), (Q21033852,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q1599065
relation P27
action find
entity Q21033852
relation P27
type Q1048835
[ANSWER] is the countries of citizenship of Peter Solderer and Alfred Müller-Edler
{'AND': [['Q1599065', 'P27', {'concept': 'Q1048835'}], ['Q21033852', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q1048835 . resource:Q1599065 property:P27 ?x . resource:Q21033852 property:P27 ?x }
Germany
Germany is the countries of citizenship of Peter Solderer and Alfred Müller-Edler
Germany
action filter_type
action intersection
action find
entity Peter Solderer
relation country of citizenship
action find
entity Alfred Müller-Edler
relation country of citizenship
type political territorial entity
{'AND': [['Peter Solderer', 'country of citizenship', {'concept': 'political territorial entity'}], ['Alfred Müller-Edler', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:political_territorial_entity . resource:Peter_Solderer property:country_of_citizenship ?x . resource:Alfred_Müller-Edler property:country_of_citizenship ?x }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q21033852 Q6741378
P106
Q12737077
USER
How many occupations are the job of Alfred Müller-Edler or Malaspina Peninsula ?
(Q21033852,P106,c(Q12737077)) (Q6741378,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q21033852
relation P106
type Q12737077
action filter_type
action find
entity Q6741378
relation P106
type Q12737077
['Q21033852', 'P106', {'concept': 'Q12737077'}] ['Q6741378', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { { ?b rdf:type ontology:Q12737077 . resource:Q21033852 property:P106 ?b } UNION { resource:Q6741378 property:P106 ?b . ?b rdf:type ontology:Q12737077 } }
Alfred Müller-Edler Malaspina Peninsula
action count
action union
action filter_type
action find
entity Alfred Müller-Edler
relation occupation
type occupation
action filter_type
action find
entity Malaspina Peninsula
relation occupation
type occupation
['Alfred Müller-Edler', 'occupation', {'concept': 'occupation'}] ['Malaspina Peninsula', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { { ?b rdf:type ontology:occupation . resource:Alfred_Müller-Edler property:occupation ?b } UNION { resource:Malaspina_Peninsula property:occupation ?b . ?b rdf:type ontology:occupation } }
[]
occupation
SYSTEM
2
Q11900058 Q15980158
(Q21033852,P106,c(Q12737077)) (Q6741378,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q21033852
relation P106
type Q12737077
action filter_type
action find
entity Q6741378
relation P106
type Q12737077
[ANSWER]
['Q21033852', 'P106', {'concept': 'Q12737077'}] ['Q6741378', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { { ?b rdf:type ontology:Q12737077 . resource:Q21033852 property:P106 ?b } UNION { resource:Q6741378 property:P106 ?b . ?b rdf:type ontology:Q12737077 } }
explorer non-fiction writer
2
action count
action union
action filter_type
action find
entity Alfred Müller-Edler
relation occupation
type occupation
action filter_type
action find
entity Malaspina Peninsula
relation occupation
type occupation
['Alfred Müller-Edler', 'occupation', {'concept': 'occupation'}] ['Malaspina Peninsula', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { { ?b rdf:type ontology:occupation . resource:Alfred_Müller-Edler property:occupation ?b } UNION { resource:Malaspina_Peninsula property:occupation ?b . ?b rdf:type ontology:occupation } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1446491 Q1599648
P19 P20
Q486972
USER
Which human settlements were Heinrich von Reder born in or did the expiration of Franz Colleselli occur ?
OR((Q1599648,P19,c(Q486972)), (Q1446491,P20,c(Q486972)))
action filter_type
action union
action find
entity Q1599648
relation P19
action find
entity Q1446491
relation P20
type Q486972
{'OR': [['Q1599648', 'P19', {'concept': 'Q486972'}], ['Q1446491', 'P20', {'concept': 'Q486972'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q1599648 property:P19 ?o } UNION { resource:Q1446491 property:P20 ?o } } . ?o rdf:type ontology:Q486972 }
Franz Colleselli Heinrich von Reder
action filter_type
action union
action find
entity Heinrich von Reder
relation place of birth
action find
entity Franz Colleselli
relation place of death
type human settlement
{'OR': [['Heinrich von Reder', 'place of birth', {'concept': 'human settlement'}], ['Franz Colleselli', 'place of death', {'concept': 'human settlement'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Heinrich_von_Reder property:place_of_birth ?o } UNION { resource:Franz_Colleselli property:place_of_death ?o } } . ?o rdf:type ontology:human_settlement }
[]
human settlement
Q552523 Q302745
SYSTEM
Mellrichstadt, Hall in Tirol
Q552523 Q302745
OR((Q1599648,P19,c(Q486972)), (Q1446491,P20,c(Q486972)))
action filter_type
action union
action find
entity Q1599648
relation P19
action find
entity Q1446491
relation P20
type Q486972
Heinrich von Reder were born in occur [ANSWERS]
{'OR': [['Q1599648', 'P19', {'concept': 'Q486972'}], ['Q1446491', 'P20', {'concept': 'Q486972'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q1599648 property:P19 ?o } UNION { resource:Q1446491 property:P20 ?o } } . ?o rdf:type ontology:Q486972 }
Mellrichstadt Hall in Tirol
Heinrich von Reder were born in occur Mellrichstadt and Hall in Tirol
Mellrichstadt Hall in Tirol
action filter_type
action union
action find
entity Heinrich von Reder
relation place of birth
action find
entity Franz Colleselli
relation place of death
type human settlement
{'OR': [['Heinrich von Reder', 'place of birth', {'concept': 'human settlement'}], ['Franz Colleselli', 'place of death', {'concept': 'human settlement'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Heinrich_von_Reder property:place_of_birth ?o } UNION { resource:Franz_Colleselli property:place_of_death ?o } } . ?o rdf:type ontology:human_settlement }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P190
Q56061
USER
How many administrative territories are twin cities of that human settlement ?
(Q302745,P190,c(Q56061))
['Q302745', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q302745 property:P190 ?z . ?z rdf:type ontology:Q56061 }
['Hall in Tirol', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Hall_in_Tirol property:sister_city ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q302745
SYSTEM
Did you mean Hall in Tirol ?
(Q552523,P190,c(Q56061)) (Q302745,P190,c(Q56061))
[ANSWER]
['Q552523', 'P190', {'concept': 'Q56061'}] ['Q302745', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q302745 property:P190 ?z . ?z rdf:type ontology:Q56061 }
Did you mean Hall in Tirol ?
Hall in Tirol
['Mellrichstadt', 'sister city', {'concept': 'administrative territorial entity'}] ['Hall in Tirol', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Hall_in_Tirol property:sister_city ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q302745,P190,c(Q56061))
['Q302745', 'P190', {'concept': 'Q56061'}]
['Hall in Tirol', 'sister city', {'concept': 'administrative territorial entity'}]
[]
SYSTEM
2
Q9125 Q1130
(Q302745,P190,c(Q56061))
[ANSWER]
['Q302745', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q302745 property:P190 ?z . ?z rdf:type ontology:Q56061 }
Winterthur Iserlohn
2
['Hall in Tirol', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Hall_in_Tirol property:sister_city ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P706
Q14524493 Q15324 Q486972
USER
How many human settlements are located in atmost 1 terrains and bodies of water ?
(c(Q486972),P706,c(Q14524493)|c(Q15324))
action count
action atmost
action union
action find_tuple_counts
relation P706
type Q486972
type Q14524493
action find_tuple_counts
relation P706
type Q486972
type Q15324
value 1
[{'concept': 'Q486972'}, 'P706', [{'concept': 'Q14524493'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { FILTER ( ?c <= 1 ) . { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?c ) WHERE { { ?q property:P706 ?t . ?q rdf:type ontology:Q486972 . ?t rdf:type ontology:Q14524493 } UNION { ?q property:P706 ?t . ?t rdf:type ontology:Q15324 . ?q rdf:type ontology:Q486972 } } GROUP BY ?q } }
action count
action atmost
action union
action find_tuple_counts
relation located on terrain feature
type human settlement
type terrain
action find_tuple_counts
relation located on terrain feature
type human settlement
type body of water
value 1
[{'concept': 'human settlement'}, 'located on terrain feature', [{'concept': 'terrain'}, {'concept': 'body of water'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { FILTER ( ?c <= 1 ) . { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?c ) WHERE { { ?q property:located_on_terrain_feature ?t . ?q rdf:type ontology:human_settlement . ?t rdf:type ontology:terrain } UNION { ?q property:located_on_terrain_feature ?t . ?t rdf:type ontology:body_of_water . ?q rdf:type ontology:human_settlement } } GROUP BY ?q } }
[]
terrain body of water human settlement
SYSTEM
112
Q10431952 Q73151 Q5182017 Q1067867 Q1982027 Q15059248 Q15709335 Q1543659 Q15058060 Q3460040 Q4144268 Q1938652 Q1194668 Q20829076 Q3351817 Q27998 Q12344051 Q15123377 Q2282756 Q1266661 Q881265 Q226726 Q4572703 Q7971580 Q15115488 Q20629 Q73179 Q82500 Q15058273 Q1348300 Q3593263 Q1440032 Q512874 Q2146309 Q2512257 Q1235576 Q1296117 Q1643547 Q13377528 Q10602449 Q3593402 Q15812854 Q303734 Q2109613 Q10532214 Q562344 Q3459768 Q1241324 Q743908 Q638063 Q1580580 Q17468609 Q649957 Q21039 Q996014 Q20767 Q1656425 Q18028211 Q17294324 Q20649 Q20648 Q649030 Q20646 Q477462 Q14805 Q18612782 Q62569 Q5584067 Q1895943 Q1557491 Q17461395 Q15849488 Q679561 Q2031633 Q12882647 Q657725 Q2285808 Q1741344 Q21039836 Q20898048 Q17461485 Q546339 Q3507 Q997023 Q26239886 Q17461393 Q2015465 Q17461542 Q1522297 Q851308 Q519717 Q5686334 Q10550336 Q1524629 Q1653952 Q696193 Q15057357 Q15139301 Q1014971 Q649494 Q10430531 Q7131792 Q2843 Q5123247 Q413420 Q2916 Q1003241 Q10548412 Q148114 Q939711 Q19964370 Q2168982
(c(Q486972),P706,c(Q14524493)|c(Q15324))
action count
action atmost
action union
action find_tuple_counts
relation P706
type Q486972
type Q14524493
action find_tuple_counts
relation P706
type Q486972
type Q15324
value 1
[ANSWER]
[{'concept': 'Q486972'}, 'P706', [{'concept': 'Q14524493'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { FILTER ( ?c <= 1 ) . { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?c ) WHERE { { ?q property:P706 ?t . ?q rdf:type ontology:Q486972 . ?t rdf:type ontology:Q14524493 } UNION { ?q property:P706 ?t . ?t rdf:type ontology:Q15324 . ?q rdf:type ontology:Q486972 } } GROUP BY ?q } }
Bodal Neuhaus im Solling Crane Flat Campground Sestiere of Venice Neuwerk Rehenbühl Gückelsberg Gratzfeld Müssighof Water Mill Lerbach Mischelbach Stock Island Savan Islands Brygge Westerland Weert Oderberg Siefenhoven Bantam Ruhlsdorf Zorge Brand Washington's Landing Sankt Stephans-Siedlung Morsum Silberborn St. Pölten Oderbrück Erberich Île aux Basques Neichen Gezira Island Retscheid Velau Eudenbach Efferoth Höhe Neuenmuhr Norra Hammarbyhamnen Puget Island Griesbuck Aathal Monte Masoni Högberga Vilm Ronkonkoma Langendorf Filicudi Niederdorla Nösund Jüngsfeld Alicudi Rantum Setauket-East Setauket Keitum Ickern Streit (Erlenbach am Main) Eichtersheim Munkmarsch Archsum Venetian Ghetto Tinnum Kizhi Pogost Kaufbeuren Wohn Rockaway Goose Island Grande Île, Strasbourg Lohn Heinzenmühle Stubbenfelde Rübeland Orscheid Old town of Rethymno SoFo Silberhütte Lürken Ziegelhütte Emsen Fallhaus Wiedensahl Marmstorf Brüngsberg Hügelmühle Prexelmühle An den Eichen Banzermühle Langenrehm Beutelmühle Mazzorbo Hayden Island Kungsklippan Himberg IJburg Ecbatana Langlau Niederbonsfeld Burggrub Pfiffelbach Björkboda Panther Hollow Lübeck City Island Ajvide Osnabrück Buke Kottla Zartwitz Girne District Schellhof Rottbitze
112
action count
action atmost
action union
action find_tuple_counts
relation located on terrain feature
type human settlement
type terrain
action find_tuple_counts
relation located on terrain feature
type human settlement
type body of water
value 1
[{'concept': 'human settlement'}, 'located on terrain feature', [{'concept': 'terrain'}, {'concept': 'body of water'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { FILTER ( ?c <= 1 ) . { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?c ) WHERE { { ?q property:located_on_terrain_feature ?t . ?q rdf:type ontology:human_settlement . ?t rdf:type ontology:terrain } UNION { ?q property:located_on_terrain_feature ?t . ?t rdf:type ontology:body_of_water . ?q rdf:type ontology:human_settlement } } GROUP BY ?q } }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2482489
Q56061
USER
And also tell me about Sinajana?
(Q2482489,P706,c(Q56061))
action filter_type
action find
entity Q2482489
relation P706
type Q56061
['Q2482489', 'P706', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q2482489 property:P706 ?r . ?r rdf:type ontology:Q56061 }
Sinajana
action filter_type
action find
entity Sinajana
relation located on terrain feature
type administrative territorial entity
['Sinajana', 'located on terrain feature', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Sinajana property:located_on_terrain_feature ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q16635
SYSTEM
Guam
Q16635
(Q2482489,P706,c(Q56061))
action filter_type
action find
entity Q2482489
relation P706
type Q56061
[ANSWER]
['Q2482489', 'P706', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q2482489 property:P706 ?r . ?r rdf:type ontology:Q56061 }
Guam
Guam
action filter_type
action find
entity Sinajana
relation located on terrain feature
type administrative territorial entity
['Sinajana', 'located on terrain feature', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Sinajana property:located_on_terrain_feature ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q51855 Q1726
P190
Q56061
USER
Which administrative territories are the sister cities of Munich or Turi, Apulia ?
OR((Q1726,P190,c(Q56061)), (Q51855,P190,c(Q56061)))
action filter_type
action union
action find
entity Q1726
relation P190
action find
entity Q51855
relation P190
type Q56061
{'OR': [['Q1726', 'P190', {'concept': 'Q56061'}], ['Q51855', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q1726 property:P190 ?c } UNION { resource:Q51855 property:P190 ?c } } . ?c rdf:type ontology:Q56061 }
Turi, Apulia Munich
action filter_type
action union
action find
entity Munich
relation sister city
action find
entity Turi, Apulia
relation sister city
type administrative territorial entity
{'OR': [['Munich', 'sister city', {'concept': 'administrative territorial entity'}], ['Turi, Apulia', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Munich property:sister_city ?c } UNION { resource:Turi,_Apulia property:sister_city ?c } } . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q48195 Q15916 Q2028 Q23436 Q345204 Q121157 Q1479 Q683922 Q3921
SYSTEM
Basra, Sežana, Verona, Edinburgh, Dakhla, Mashhad, Bordeaux, Roeser, Harare
Q48195 Q15916 Q2028 Q23436 Q345204 Q121157 Q1479 Q683922 Q3921
OR((Q1726,P190,c(Q56061)), (Q51855,P190,c(Q56061)))
action filter_type
action union
action find
entity Q1726
relation P190
action find
entity Q51855
relation P190
type Q56061
[ANSWERS] are the sister cities of Munich or Turi, Apulia
{'OR': [['Q1726', 'P190', {'concept': 'Q56061'}], ['Q51855', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q1726 property:P190 ?c } UNION { resource:Q51855 property:P190 ?c } } . ?c rdf:type ontology:Q56061 }
Basra Sežana Verona Edinburgh Dakhla Mashhad Bordeaux Roeser Harare
Basra, Sežana, Verona, Edinburgh, Dakhla, Mashhad, Bordeaux, Roeser and Harare are the sister cities of Munich or Turi, Apulia
Basra Sežana Verona Edinburgh Dakhla Mashhad Bordeaux Roeser Harare
action filter_type
action union
action find
entity Munich
relation sister city
action find
entity Turi, Apulia
relation sister city
type administrative territorial entity
{'OR': [['Munich', 'sister city', {'concept': 'administrative territorial entity'}], ['Turi, Apulia', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Munich property:sister_city ?c } UNION { resource:Turi,_Apulia property:sister_city ?c } } . ?c rdf:type ontology:administrative_territorial_entity }
[]