Simple Question (Direct)
Simple Question
Q1705835
P39
Q12737077
USER
Which occupation was a position for which Josef Stern was appointed ?
(Q1705835,P39,c(Q12737077))
action filter_type
action find
entity Q1705835
relation P39
type Q12737077
['Q1705835', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q12737077 . resource:Q1705835 property:P39 ?m }
Josef Stern
action filter_type
action find
entity Josef Stern
relation position held
type occupation
['Josef Stern', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:occupation . resource:Josef_Stern property:position_held ?m }
[]
occupation
Q18627724
SYSTEM
Member of the Prussian House of Representatives
Q18627724
(Q1705835,P39,c(Q12737077))
action filter_type
action find
entity Q1705835
relation P39
type Q12737077
[ANSWER] was a position for which Josef Stern was appointed
['Q1705835', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q12737077 . resource:Q1705835 property:P39 ?m }
Member of the Prussian House of Representatives
Member of the Prussian House of Representatives was a position for which Josef Stern was appointed
Member of the Prussian House of Representatives
action filter_type
action find
entity Josef Stern
relation position held
type occupation
['Josef Stern', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:occupation . resource:Josef_Stern property:position_held ?m }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1705835
P20
Q515
USER
Which city is the place of death of Josef Stern ?
(Q1705835,P20,c(Q515))
action filter_type
action find
entity Q1705835
relation P20
type Q515
['Q1705835', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q515 . resource:Q1705835 property:P20 ?h }
Josef Stern
action filter_type
action find
entity Josef Stern
relation place of death
type city
['Josef Stern', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:city . resource:Josef_Stern property:place_of_death ?h }
[]
city
Q1794
SYSTEM
Frankfurt
Q1794
(Q1705835,P20,c(Q515))
action filter_type
action find
entity Q1705835
relation P20
type Q515
[ANSWER] is the place of death of Josef Stern
['Q1705835', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q515 . resource:Q1705835 property:P20 ?h }
Frankfurt
Frankfurt is the place of death of Josef Stern
Frankfurt
action filter_type
action find
entity Josef Stern
relation place of death
type city
['Josef Stern', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:city . resource:Josef_Stern property:place_of_death ?h }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1794 Q15853035 Q6199384
P6
Q502895
USER
Does that city have its government headed by Vivian Hösch and Tor Sverne ?
(Q1794,P6,Q15853035) (Q1794,P6,Q6199384)
action is_in
entity Q1794
action intersection
action find_reverse
entity Q15853035
relation P6
action find_reverse
entity Q6199384
relation P6
['Q1794', 'P6', 'Q15853035'] ['Q1794', 'P6', 'Q6199384']
ASK WHERE { resource:Q1794 property:P6 resource:Q15853035 . resource:Q1794 property:P6 resource:Q6199384 }
Frankfurt Vivian Hösch Tor Sverne
action is_in
entity Frankfurt
action intersection
action find_reverse
entity Vivian Hösch
relation head of government
action find_reverse
entity Tor Sverne
relation head of government
['Frankfurt', 'head of government', 'Vivian Hösch'] ['Frankfurt', 'head of government', 'Tor Sverne']
ASK WHERE { resource:Frankfurt property:head_of_government resource:Vivian_Hösch . resource:Frankfurt property:head_of_government resource:Tor_Sverne }
[]
common name
SYSTEM
NO
(Q1794,P6,Q15853035) (Q1794,P6,Q6199384)
action is_in
entity Q1794
action intersection
action find_reverse
entity Q15853035
relation P6
action find_reverse
entity Q6199384
relation P6
[ANSWER]
['Q1794', 'P6', 'Q15853035'] ['Q1794', 'P6', 'Q6199384']
ASK WHERE { resource:Q1794 property:P6 resource:Q15853035 . resource:Q1794 property:P6 resource:Q6199384 }
No
action is_in
entity Frankfurt
action intersection
action find_reverse
entity Vivian Hösch
relation head of government
action find_reverse
entity Tor Sverne
relation head of government
['Frankfurt', 'head of government', 'Vivian Hösch'] ['Frankfurt', 'head of government', 'Tor Sverne']
ASK WHERE { resource:Frankfurt property:head_of_government resource:Vivian_Hösch . resource:Frankfurt property:head_of_government resource:Tor_Sverne }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P36
Q515 Q15617994 Q1048835
USER
Which cities are called the capital of exactly 1 administrative territories or political territories ?
(c(Q15617994)|c(Q1048835),P36,c(Q515))
action equal
action union
action find_reverse_tuple_counts
relation P36
type Q515
type Q15617994
action find_reverse_tuple_counts
relation P36
type Q515
type Q1048835
value 1
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?o ) AS ?x ) WHERE { { ?o property:P36 ?k . ?k rdf:type ontology:Q515 . ?o rdf:type ontology:Q1048835 } UNION { ?o property:P36 ?k . ?o rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q515 } } GROUP BY ?k } . FILTER ( ?x = 1 ) }
action equal
action union
action find_reverse_tuple_counts
relation capital
type city
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation capital
type city
type political territorial entity
value 1
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'capital', {'concept': 'city'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?o ) AS ?x ) WHERE { { ?o property:capital ?k . ?k rdf:type ontology:city . ?o rdf:type ontology:political_territorial_entity } UNION { ?o property:capital ?k . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:city } } GROUP BY ?k } . FILTER ( ?x = 1 ) }
[]
city designation for an administrative territorial entity political territorial entity
Q1486 Q1773 Q23482
SYSTEM
Buenos Aires, Riga, Marseille
Q15826 Q39738 Q3572 Q10126 Q1710 Q14525 Q3042 Q19689 Q873377 Q4024 Q1711 Q27860 Q3624 Q592338 Q52607 Q7473516 Q3870 Q5779 Q1696 Q41474 Q1070920 Q174096 Q111739 Q18970 Q432169 Q147738 Q2135 Q8131 Q11462 Q3214 Q23482 Q1000336 Q5838 Q583137 Q3692 Q1019949 Q235004 Q3104 Q725168 Q12062 Q1486 Q1467 Q1461 Q14499 Q10389 Q23430 Q35925 Q1362 Q15379 Q1723 Q1519 Q8684 Q3838 Q459787 Q7248 Q1025387 Q191651 Q14819 Q5285 Q14182 Q3866 Q1636 Q7027 Q7786 Q10104 Q3859 Q19660 Q1020939 Q3915 Q155674 Q314686 Q1953 Q2180 Q3319248 Q9005 Q14960 Q3185 Q874270 Q1773 Q2079 Q8156 Q1858 Q2096 Q3787 Q4007 Q14168 Q7070 Q3826 Q55598 Q1826 Q1533 Q1856 Q542154 Q3126 Q7253 Q157835 Q3046 Q2936 Q2749 Q42751 Q11194 Q63145 Q2119 Q5972 Q1720 Q1645 Q7578 Q3904 Q14126 Q15847 Q2844 Q3768 Q1863 Q1865 Q2209 Q2200 Q16506 Q14155 Q14409 Q517783 Q40626 Q55740 Q6582 Q57944 Q1761 Q2795 Q2887 Q8179 Q2061 Q5217 Q1020709 Q2152435 Q3936 Q3919 Q3751 Q3750 Q3616 Q894059 Q183111 Q40584 Q1067897 Q25475 Q11506 Q107624 Q2900 Q8042 Q187284 Q50179 Q104125
(c(Q15617994)|c(Q1048835),P36,c(Q515))
action equal
action union
action find_reverse_tuple_counts
relation P36
type Q515
type Q15617994
action find_reverse_tuple_counts
relation P36
type Q515
type Q1048835
value 1
[ANSWERS] are called the capital of exactly 1 administrative territories or political territories
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?o ) AS ?x ) WHERE { { ?o property:P36 ?k . ?k rdf:type ontology:Q515 . ?o rdf:type ontology:Q1048835 } UNION { ?o property:P36 ?k . ?o rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q515 } } GROUP BY ?k } . FILTER ( ?x = 1 ) }
Palu Laoag Tunis Serang Isabela City Gorontalo Offenbach am Main Tirana Dumaguete Frankfurt (Oder) Potsdam Jayapura Addis Ababa Marawi Mar del Plata Tokyo Nairobi Banda Aceh Legazpi Kingstown Mamuju Sorsogon City Puerto Princesa Ambon Dipolog Saint Helier Winnipeg Palembang Surabaya Cottbus Marseille Tandil Kabul Kidapawan Riyadh Surigao City Vigan Koblenz Tagum Torgau Buenos Aires Cebu City Manila Samarinda Bandung Ulaanbaatar Tabuk Islamabad Kendari Batangas City Abu Dhabi Seoul Kinshasa Iloilo City Bukittinggi Maasin Masbate City Freiberg Tarlac Banjarmasin Dodoma Antipolo Straubing Pekanbaru Tanjung Pinang Kigali Bucharest Digos Antananarivo Tandag Mati Yerevan Malolos Pehuajó Brussels Brno Hildesheim Pagadian Riga Leipzig Bandar Lampung Hanoi Edmonton Abuja Rosenheim Pontianak Eisenach Muscat Palayan Tagbilaran Caracas Malaybalay Koronadal Erlangen Padang Zaporizhzhya Pforzheim Oldenburg Augsburg Palikir Sarajevo Imus Mannheim Medan Mainz Cagayan de Oro Jambi Mbabane Mataram Manado Brasília Yamoussoukro Andorra la Vella Kuala Lumpur Roxas Tuguegarao České Budějovice Kupang Palangkaraya Pinamar Tacloban San Fernando Carcassonne Annaberg-Buchholz Dublin Chemnitz Santiago Pangkal Pinang Yellowknife Bacolod Catbalogan Miramar Bamberg Gaborone Praia Gera Tehran Borongan Jihlava San Fernando Oroquieta Batumi Denpasar Calapan Quito Bengkulu Hurghada Ilagan Lucena
Buenos Aires, Riga and Marseille are called the capital of exactly 1 administrative territories or political territories
Buenos Aires Riga Marseille
action equal
action union
action find_reverse_tuple_counts
relation capital
type city
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation capital
type city
type political territorial entity
value 1
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'capital', {'concept': 'city'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?o ) AS ?x ) WHERE { { ?o property:capital ?k . ?k rdf:type ontology:city . ?o rdf:type ontology:political_territorial_entity } UNION { ?o property:capital ?k . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:city } } GROUP BY ?k } . FILTER ( ?x = 1 ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P190
Q2074737 Q1048835
USER
How many municipalities of Spain or political territories are sister towns of that city ?
(Q1486,P190,c(Q2074737)) (Q1486,P190,c(Q1048835)) (Q1486,P190,c(Q2074737)) (Q1486,P190,c(Q1048835)) (Q1773,P190,c(Q2074737)) (Q1773,P190,c(Q1048835)) (Q23482,P190,c(Q2074737)) (Q23482,P190,c(Q1048835))
['Q1486', 'P190', {'concept': 'Q2074737'}] ['Q1486', 'P190', {'concept': 'Q1048835'}] ['Q1486', 'P190', {'concept': 'Q2074737'}] ['Q1486', 'P190', {'concept': 'Q1048835'}] ['Q1773', 'P190', {'concept': 'Q2074737'}] ['Q1773', 'P190', {'concept': 'Q1048835'}] ['Q23482', 'P190', {'concept': 'Q2074737'}] ['Q23482', 'P190', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q2101554 property:P190 ?z } UNION { resource:Q2101554 property:P190 ?y } UNION { resource:Q2101554 property:P190 ?z } UNION { resource:Q2101554 property:P190 ?y } UNION { resource:Q19468180 property:P190 ?z } UNION { resource:Q19468180 property:P190 ?y } UNION { resource:Q3849886 property:P190 ?z } UNION { resource:Q3849886 property:P190 ?y } } . ?z rdf:type ontology:Q2074737 . ?y rdf:type ontology:Q1048835 }
['Buenos Aires', 'sister city', {'concept': 'municipality of Spain'}] ['Buenos Aires', 'sister city', {'concept': 'political territorial entity'}] ['Buenos Aires', 'sister city', {'concept': 'municipality of Spain'}] ['Buenos Aires', 'sister city', {'concept': 'political territorial entity'}] ['Riga', 'sister city', {'concept': 'municipality of Spain'}] ['Riga', 'sister city', {'concept': 'political territorial entity'}] ['Marseille', 'sister city', {'concept': 'municipality of Spain'}] ['Marseille', 'sister city', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Buenos_Aires property:sister_city ?z } UNION { resource:Buenos_Aires property:sister_city ?y } UNION { resource:Buenos_Aires property:sister_city ?z } UNION { resource:Buenos_Aires property:sister_city ?y } UNION { resource:Riga property:sister_city ?z } UNION { resource:Riga property:sister_city ?y } UNION { resource:Marseille property:sister_city ?z } UNION { resource:Marseille property:sister_city ?y } } . ?z rdf:type ontology:municipality_of_Spain . ?y rdf:type ontology:political_territorial_entity }
[]
municipality of Spain political territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q23482
SYSTEM
Did you mean Marseille ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q2101554 property:P190 ?z } UNION { resource:Q2101554 property:P190 ?y } UNION { resource:Q2101554 property:P190 ?z } UNION { resource:Q2101554 property:P190 ?y } UNION { resource:Q19468180 property:P190 ?z } UNION { resource:Q19468180 property:P190 ?y } UNION { resource:Q3849886 property:P190 ?z } UNION { resource:Q3849886 property:P190 ?y } } . ?z rdf:type ontology:Q2074737 . ?y rdf:type ontology:Q1048835 }
Did you mean Marseille ?
Marseille
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Buenos_Aires property:sister_city ?z } UNION { resource:Buenos_Aires property:sister_city ?y } UNION { resource:Buenos_Aires property:sister_city ?z } UNION { resource:Buenos_Aires property:sister_city ?y } UNION { resource:Riga property:sister_city ?z } UNION { resource:Riga property:sister_city ?y } UNION { resource:Marseille property:sister_city ?z } UNION { resource:Marseille property:sister_city ?y } } . ?z rdf:type ontology:municipality_of_Spain . ?y rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Buenos Aires. Could you tell me the answer for that?
(Q1486,P190,c(Q2074737)) (Q1486,P190,c(Q1048835)) (Q1486,P190,c(Q2074737)) (Q1486,P190,c(Q1048835)) (Q1773,P190,c(Q2074737)) (Q1773,P190,c(Q1048835)) (Q23482,P190,c(Q2074737)) (Q23482,P190,c(Q1048835))
Q1486
['Q1486', 'P190', {'concept': 'Q2074737'}] ['Q1486', 'P190', {'concept': 'Q1048835'}] ['Q1486', 'P190', {'concept': 'Q2074737'}] ['Q1486', 'P190', {'concept': 'Q1048835'}] ['Q1773', 'P190', {'concept': 'Q2074737'}] ['Q1773', 'P190', {'concept': 'Q1048835'}] ['Q23482', 'P190', {'concept': 'Q2074737'}] ['Q23482', 'P190', {'concept': 'Q1048835'}]
['Buenos Aires', 'sister city', {'concept': 'municipality of Spain'}] ['Buenos Aires', 'sister city', {'concept': 'political territorial entity'}] ['Buenos Aires', 'sister city', {'concept': 'municipality of Spain'}] ['Buenos Aires', 'sister city', {'concept': 'political territorial entity'}] ['Riga', 'sister city', {'concept': 'municipality of Spain'}] ['Riga', 'sister city', {'concept': 'political territorial entity'}] ['Marseille', 'sister city', {'concept': 'municipality of Spain'}] ['Marseille', 'sister city', {'concept': 'political territorial entity'}]
[]
SYSTEM
3
Q433632 Q14317 Q5783
(Q1486,P190,c(Q2074737)) (Q1486,P190,c(Q1048835)) (Q1486,P190,c(Q2074737)) (Q1486,P190,c(Q1048835)) (Q1773,P190,c(Q2074737)) (Q1773,P190,c(Q1048835)) (Q23482,P190,c(Q2074737)) (Q23482,P190,c(Q1048835))
[ANSWER]
['Q1486', 'P190', {'concept': 'Q2074737'}] ['Q1486', 'P190', {'concept': 'Q1048835'}] ['Q1486', 'P190', {'concept': 'Q2074737'}] ['Q1486', 'P190', {'concept': 'Q1048835'}] ['Q1773', 'P190', {'concept': 'Q2074737'}] ['Q1773', 'P190', {'concept': 'Q1048835'}] ['Q23482', 'P190', {'concept': 'Q2074737'}] ['Q23482', 'P190', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q2101554 property:P190 ?z } UNION { resource:Q2101554 property:P190 ?y } UNION { resource:Q2101554 property:P190 ?z } UNION { resource:Q2101554 property:P190 ?y } UNION { resource:Q19468180 property:P190 ?z } UNION { resource:Q19468180 property:P190 ?y } UNION { resource:Q3849886 property:P190 ?z } UNION { resource:Q3849886 property:P190 ?y } } . ?z rdf:type ontology:Q2074737 . ?y rdf:type ontology:Q1048835 }
Santa Cruz de La Palma Oviedo Andalusia
3
['Buenos Aires', 'sister city', {'concept': 'municipality of Spain'}] ['Buenos Aires', 'sister city', {'concept': 'political territorial entity'}] ['Buenos Aires', 'sister city', {'concept': 'municipality of Spain'}] ['Buenos Aires', 'sister city', {'concept': 'political territorial entity'}] ['Riga', 'sister city', {'concept': 'municipality of Spain'}] ['Riga', 'sister city', {'concept': 'political territorial entity'}] ['Marseille', 'sister city', {'concept': 'municipality of Spain'}] ['Marseille', 'sister city', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Buenos_Aires property:sister_city ?z } UNION { resource:Buenos_Aires property:sister_city ?y } UNION { resource:Buenos_Aires property:sister_city ?z } UNION { resource:Buenos_Aires property:sister_city ?y } UNION { resource:Riga property:sister_city ?z } UNION { resource:Riga property:sister_city ?y } UNION { resource:Marseille property:sister_city ?z } UNION { resource:Marseille property:sister_city ?y } } . ?z rdf:type ontology:municipality_of_Spain . ?y rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1486
P291
Q2342494 Q21114848
USER
How many collectables and magazine genres were published in Buenos Aires ?
(c(Q2342494),P291,Q1486) (c(Q21114848),P291,Q1486)
action count
action union
action filter_type
action find_reverse
entity Q1486
relation P291
type Q2342494
action filter_type
action find_reverse
entity Q1486
relation P291
type Q21114848
[{'concept': 'Q2342494'}, 'P291', 'Q1486'] [{'concept': 'Q21114848'}, 'P291', 'Q1486']
SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { { ?s rdf:type ontology:Q2342494 . ?s property:P291 resource:Q1486 } UNION { ?s property:P291 resource:Q1486 . ?s rdf:type ontology:Q21114848 } }
Buenos Aires
action count
action union
action filter_type
action find_reverse
entity Buenos Aires
relation place of publication
type collectable
action filter_type
action find_reverse
entity Buenos Aires
relation place of publication
type magazine genre
[{'concept': 'collectable'}, 'place of publication', 'Buenos Aires'] [{'concept': 'magazine genre'}, 'place of publication', 'Buenos Aires']
SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { { ?s rdf:type ontology:collectable . ?s property:place_of_publication resource:Buenos_Aires } UNION { ?s property:place_of_publication resource:Buenos_Aires . ?s rdf:type ontology:magazine_genre } }
[]
collectable magazine genre
SYSTEM
1 collectables and 1 magazine genres
Q5957079 Q17771532
(c(Q2342494),P291,Q1486) (c(Q21114848),P291,Q1486)
action count
action union
action filter_type
action find_reverse
entity Q1486
relation P291
type Q2342494
action filter_type
action find_reverse
entity Q1486
relation P291
type Q21114848
[ANSWER]
[{'concept': 'Q2342494'}, 'P291', 'Q1486'] [{'concept': 'Q21114848'}, 'P291', 'Q1486']
SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { { ?s rdf:type ontology:Q2342494 . ?s property:P291 resource:Q1486 } UNION { ?s property:P291 resource:Q1486 . ?s rdf:type ontology:Q21114848 } }
Juvenilia Revista de la  Unión Matemática Argentina
1 collectables and 1 magazine genres
action count
action union
action filter_type
action find_reverse
entity Buenos Aires
relation place of publication
type collectable
action filter_type
action find_reverse
entity Buenos Aires
relation place of publication
type magazine genre
[{'concept': 'collectable'}, 'place of publication', 'Buenos Aires'] [{'concept': 'magazine genre'}, 'place of publication', 'Buenos Aires']
SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { { ?s rdf:type ontology:collectable . ?s property:place_of_publication resource:Buenos_Aires } UNION { ?s property:place_of_publication resource:Buenos_Aires . ?s rdf:type ontology:magazine_genre } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q26701388 Q1705835
P27 P1001
Q1048835
USER
Which political territories are the native countriesof Josef Stern or come under the jurisdiction of mayor of Alarba ?
OR((Q1705835,P27,c(Q1048835)), (Q26701388,P1001,c(Q1048835)))
action filter_type
action union
action find
entity Q1705835
relation P27
action find
entity Q26701388
relation P1001
type Q1048835
{'OR': [['Q1705835', 'P27', {'concept': 'Q1048835'}], ['Q26701388', 'P1001', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q1048835 . { { resource:Q1705835 property:P27 ?d } UNION { resource:Q26701388 property:P1001 ?d } } }
mayor of Alarba Josef Stern
action filter_type
action union
action find
entity Josef Stern
relation country of citizenship
action find
entity mayor of Alarba
relation applies to jurisdiction
type political territorial entity
{'OR': [['Josef Stern', 'country of citizenship', {'concept': 'political territorial entity'}], ['mayor of Alarba', 'applies to jurisdiction', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:political_territorial_entity . { { resource:Josef_Stern property:country_of_citizenship ?d } UNION { resource:mayor_of_Alarba property:applies_to_jurisdiction ?d } } }
[]
political territorial entity
Q975254 Q183
SYSTEM
Alarba, Germany
Q975254 Q183
OR((Q1705835,P27,c(Q1048835)), (Q26701388,P1001,c(Q1048835)))
action filter_type
action union
action find
entity Q1705835
relation P27
action find
entity Q26701388
relation P1001
type Q1048835
[ANSWERS] are the native countriesof Josef Stern or come under the jurisdiction of mayor of Alarba
{'OR': [['Q1705835', 'P27', {'concept': 'Q1048835'}], ['Q26701388', 'P1001', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q1048835 . { { resource:Q1705835 property:P27 ?d } UNION { resource:Q26701388 property:P1001 ?d } } }
Alarba Germany
Alarba and Germany are the native countriesof Josef Stern or come under the jurisdiction of mayor of Alarba
Alarba Germany
action filter_type
action union
action find
entity Josef Stern
relation country of citizenship
action find
entity mayor of Alarba
relation applies to jurisdiction
type political territorial entity
{'OR': [['Josef Stern', 'country of citizenship', {'concept': 'political territorial entity'}], ['mayor of Alarba', 'applies to jurisdiction', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:political_territorial_entity . { { resource:Josef_Stern property:country_of_citizenship ?d } UNION { resource:mayor_of_Alarba property:applies_to_jurisdiction ?d } } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q975254 Q183
P47
Q1048835
USER
Which political territories do Alarba and Germany share a border with ?
(c(Q1048835),P47,Q975254) (c(Q1048835),P47,Q183)
action union
action filter_type
action find_reverse
entity Q975254
relation P47
type Q1048835
action filter_type
action find_reverse
entity Q183
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q975254'] [{'concept': 'Q1048835'}, 'P47', 'Q183']
SELECT DISTINCT ?o WHERE { VALUES ( ?k ) { ( resource:Q975254 ) ( resource:Q183 ) } . ?o property:P47 ?k }
Alarba Germany
action union
action filter_type
action find_reverse
entity Alarba
relation shares border with
type political territorial entity
action filter_type
action find_reverse
entity Germany
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Alarba'] [{'concept': 'political territorial entity'}, 'shares border with', 'Germany']
SELECT DISTINCT ?o WHERE { VALUES ( ?k ) { ( resource:Alarba ) ( resource:Germany ) } . ?o property:shares_border_with ?k }
[]
political territorial entity
Q35 Q40 Q13116
SYSTEM
Denmark, Austria, Benelux
Q1639539 Q1650697 Q541657 Q1650749 Q13116 Q191091 Q35 Q40
(c(Q1048835),P47,Q975254) (c(Q1048835),P47,Q183)
action union
action filter_type
action find_reverse
entity Q975254
relation P47
type Q1048835
action filter_type
action find_reverse
entity Q183
relation P47
type Q1048835
Alarba and Germany share a border with [ANSWERS]
[{'concept': 'Q1048835'}, 'P47', 'Q975254'] [{'concept': 'Q1048835'}, 'P47', 'Q183']
SELECT DISTINCT ?o WHERE { VALUES ( ?k ) { ( resource:Q975254 ) ( resource:Q183 ) } . ?o property:P47 ?k }
Acered Olvés Castejón de Alarba Morata de Jiloca Benelux Karlovy Vary Region Denmark Austria
Alarba and Germany share a border with Denmark, Austria and Benelux
Denmark Austria Benelux
action union
action filter_type
action find_reverse
entity Alarba
relation shares border with
type political territorial entity
action filter_type
action find_reverse
entity Germany
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Alarba'] [{'concept': 'political territorial entity'}, 'shares border with', 'Germany']
SELECT DISTINCT ?o WHERE { VALUES ( ?k ) { ( resource:Alarba ) ( resource:Germany ) } . ?o property:shares_border_with ?k }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q35 Q40 Q13116
P47
Q15617994
USER
Which administrative territories are next to the border of Denmark, Austria and Benelux ?
(c(Q15617994),P47,Q35) (c(Q15617994),P47,Q40) (c(Q15617994),P47,Q13116)
action union
action filter_type
action find
entity Q35
relation P47
type Q15617994
action filter_type
action find
entity Q40
relation P47
type Q15617994
action filter_type
action find
entity Q13116
relation P47
type Q15617994
[{'concept': 'Q15617994'}, 'P47', 'Q35'] [{'concept': 'Q15617994'}, 'P47', 'Q40'] [{'concept': 'Q15617994'}, 'P47', 'Q13116']
SELECT DISTINCT ?g WHERE { { resource:Q35 property:P47 ?g . ?g rdf:type ontology:Q15617994 } UNION { resource:Q40 property:P47 ?g . ?g rdf:type ontology:Q15617994 } }
Denmark Austria Benelux
action union
action filter_type
action find
entity Denmark
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Austria
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Benelux
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Denmark'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Austria'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Benelux']
SELECT DISTINCT ?g WHERE { { resource:Denmark property:shares_border_with ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Austria property:shares_border_with ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q38 Q142 Q145
SYSTEM
Italy, France, United Kingdom
Q34 Q145 Q20 Q347 Q213 Q214 Q215 Q39 Q38 Q28 Q142
(c(Q15617994),P47,Q35) (c(Q15617994),P47,Q40) (c(Q15617994),P47,Q13116)
action union
action filter_type
action find
entity Q35
relation P47
type Q15617994
action filter_type
action find
entity Q40
relation P47
type Q15617994
action filter_type
action find
entity Q13116
relation P47
type Q15617994
[ANSWERS] are next to the border of Denmark, Austria and Benelux
[{'concept': 'Q15617994'}, 'P47', 'Q35'] [{'concept': 'Q15617994'}, 'P47', 'Q40'] [{'concept': 'Q15617994'}, 'P47', 'Q13116']
SELECT DISTINCT ?g WHERE { { resource:Q35 property:P47 ?g . ?g rdf:type ontology:Q15617994 } UNION { resource:Q40 property:P47 ?g . ?g rdf:type ontology:Q15617994 } }
Sweden United Kingdom Norway Liechtenstein Czech Republic Slovakia Slovenia Switzerland Italy Hungary France
Italy, France and United Kingdom are next to the border of Denmark, Austria and Benelux
Italy France United Kingdom
action union
action filter_type
action find
entity Denmark
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Austria
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Benelux
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Denmark'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Austria'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Benelux']
SELECT DISTINCT ?g WHERE { { resource:Denmark property:shares_border_with ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Austria property:shares_border_with ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q38 Q142 Q145
P530
Q1048835
USER
Which political territories are known to have diplomatic connections with those administrative territories ?
(c(Q1048835),P530,Q38) (c(Q1048835),P530,Q142) (c(Q1048835),P530,Q145)
action filter_type
action find
entity prev_answer
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q38'] [{'concept': 'Q1048835'}, 'P530', 'Q142'] [{'concept': 'Q1048835'}, 'P530', 'Q145']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1048835 . VALUES ( ?t ) { ( resource:Q34 ) ( resource:Q145 ) ( resource:Q20 ) } . ?t property:P530 ?f }
Italy France United Kingdom
action filter_type
action find
entity prev_answer
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Italy'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'France'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'United Kingdom']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:political_territorial_entity . VALUES ( ?t ) { ( resource:Sweden ) ( resource:United_Kingdom ) ( resource:Norway ) } . ?t property:diplomatic_relation ?f }
[]
political territorial entity
Q183 Q183 Q183
SYSTEM
Germany
Q664 Q408 Q35 Q183 Q16 Q40 Q408 Q183 Q40 Q408 Q183 Q16
(c(Q1048835),P530,Q38) (c(Q1048835),P530,Q142) (c(Q1048835),P530,Q145)
action filter_type
action find
entity prev_answer
relation P530
type Q1048835
[ANSWER], [ANSWER] and [ANSWER] are known to have diplomatic connections with those administrative territories
[{'concept': 'Q1048835'}, 'P530', 'Q38'] [{'concept': 'Q1048835'}, 'P530', 'Q142'] [{'concept': 'Q1048835'}, 'P530', 'Q145']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1048835 . VALUES ( ?t ) { ( resource:Q34 ) ( resource:Q145 ) ( resource:Q20 ) } . ?t property:P530 ?f }
New Zealand Australia Denmark Germany Canada Austria Australia Germany Austria Australia Germany Canada
Germany, Germany and Germany are known to have diplomatic connections with those administrative territories
Germany Germany Germany
action filter_type
action find
entity prev_answer
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Italy'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'France'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'United Kingdom']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:political_territorial_entity . VALUES ( ?t ) { ( resource:Sweden ) ( resource:United_Kingdom ) ( resource:Norway ) } . ?t property:diplomatic_relation ?f }
[]