Simple Question (Direct)
Simple Question
Q612332
P21
Q290
USER
What is the sex of Emanuel Rostworowski ?
(Q612332,P21,c(Q290))
action filter_type
action find
entity Q612332
relation P21
type Q290
['Q612332', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q290 . resource:Q612332 property:P21 ?q }
Emanuel Rostworowski
action filter_type
action find
entity Emanuel Rostworowski
relation gender
type sex
['Emanuel Rostworowski', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:sex . resource:Emanuel_Rostworowski property:gender ?q }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q612332,P21,c(Q290))
action filter_type
action find
entity Q612332
relation P21
type Q290
The sex of Emanuel Rostworowski is the [ANSWER]
['Q612332', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q290 . resource:Q612332 property:P21 ?q }
male
The sex of Emanuel Rostworowski is the male
male
action filter_type
action find
entity Emanuel Rostworowski
relation gender
type sex
['Emanuel Rostworowski', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:sex . resource:Emanuel_Rostworowski property:gender ?q }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q612332
P20
Q486972
USER
Which human settlement is the place of death of that person ?
(Q6581097,P20,c(Q486972))
action filter_type
action find
entity Q612332
relation P20
type Q486972
['Q6581097', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?c WHERE { resource:Q612332 property:P20 ?c . ?c rdf:type ontology:Q486972 }
Emanuel Rostworowski
action filter_type
action find
entity Emanuel Rostworowski
relation place of death
type human settlement
['male', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?c WHERE { resource:Emanuel_Rostworowski property:place_of_death ?c . ?c rdf:type ontology:human_settlement }
[]
human settlement
Q31487
SYSTEM
Kraków
Q31487
(Q6581097,P20,c(Q486972))
action filter_type
action find
entity Q612332
relation P20
type Q486972
[ANSWER] is the place of death of that person
['Q6581097', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?c WHERE { resource:Q612332 property:P20 ?c . ?c rdf:type ontology:Q486972 }
Kraków
Kraków is the place of death of that person
Kraków
action filter_type
action find
entity Emanuel Rostworowski
relation place of death
type human settlement
['male', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?c WHERE { resource:Emanuel_Rostworowski property:place_of_death ?c . ?c rdf:type ontology:human_settlement }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P6
Q502895 Q486972
USER
Which human settlements have a government lead by less number of people than that human settlement ?
(c(Q486972),P6,c(Q502895))
action less
action find_tuple_counts
relation P6
type Q486972
type Q502895
action count
action filter_type
action find
entity Q31487
relation P6
type Q502895
[{'concept': 'Q486972'}, 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?w ) AS ?d ) WHERE { ?l property:P6 ?w . ?l rdf:type ontology:Q486972 . ?w rdf:type ontology:Q502895 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { resource:Q31487 property:P6 ?t . ?t rdf:type ontology:Q502895 } } . FILTER ( ?d < ?q ) }
action less
action find_tuple_counts
relation head of government
type human settlement
type common name
action count
action filter_type
action find
entity Kraków
relation head of government
type common name
[{'concept': 'human settlement'}, 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?w ) AS ?d ) WHERE { ?l property:head_of_government ?w . ?l rdf:type ontology:human_settlement . ?w rdf:type ontology:common_name } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { resource:Kraków property:head_of_government ?t . ?t rdf:type ontology:common_name } } . FILTER ( ?d < ?q ) }
[]
common name human settlement
Q1766974 Q621700 Q504513
SYSTEM
Puebla de San Medel, Algora, Bad Brückenau
Q1766974 Q621700 Q504513
(c(Q486972),P6,c(Q502895))
action less
action find_tuple_counts
relation P6
type Q486972
type Q502895
action count
action filter_type
action find
entity Q31487
relation P6
type Q502895
[ANSWERS] have a government lead by less number of people than that human settlement
[{'concept': 'Q486972'}, 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?w ) AS ?d ) WHERE { ?l property:P6 ?w . ?l rdf:type ontology:Q486972 . ?w rdf:type ontology:Q502895 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { resource:Q31487 property:P6 ?t . ?t rdf:type ontology:Q502895 } } . FILTER ( ?d < ?q ) }
Puebla de San Medel Algora Bad Brückenau
Puebla de San Medel, Algora and Bad Brückenau have a government lead by less number of people than that human settlement
Puebla de San Medel Algora Bad Brückenau
action less
action find_tuple_counts
relation head of government
type human settlement
type common name
action count
action filter_type
action find
entity Kraków
relation head of government
type common name
[{'concept': 'human settlement'}, 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?w ) AS ?d ) WHERE { ?l property:head_of_government ?w . ?l rdf:type ontology:human_settlement . ?w rdf:type ontology:common_name } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { resource:Kraków property:head_of_government ?t . ?t rdf:type ontology:common_name } } . FILTER ( ?d < ?q ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q31487
P47
Q13220204
USER
Which administrative country subdivisions have an adjacent border with Kraków ?
(c(Q13220204),P47,Q31487)
action filter_type
action find_reverse
entity Q31487
relation P47
type Q13220204
[{'concept': 'Q13220204'}, 'P47', 'Q31487']
SELECT DISTINCT ?m WHERE { ?m property:P47 resource:Q31487 . ?m rdf:type ontology:Q13220204 }
Kraków
action filter_type
action find_reverse
entity Kraków
relation shares border with
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Kraków']
SELECT DISTINCT ?m WHERE { ?m property:shares_border_with resource:Kraków . ?m rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q1164890 Q1147589 Q1147561
SYSTEM
Kraków County, Bochnia County, Proszowice County
Q1147589 Q1164890 Q609424 Q1147561
(c(Q13220204),P47,Q31487)
action filter_type
action find_reverse
entity Q31487
relation P47
type Q13220204
[ANSWERS] have an adjacent border with Kraków
[{'concept': 'Q13220204'}, 'P47', 'Q31487']
SELECT DISTINCT ?m WHERE { ?m property:P47 resource:Q31487 . ?m rdf:type ontology:Q13220204 }
Bochnia County Kraków County Wieliczka County Proszowice County
Kraków County, Bochnia County and Proszowice County have an adjacent border with Kraków
Kraków County Bochnia County Proszowice County
action filter_type
action find_reverse
entity Kraków
relation shares border with
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'Kraków']
SELECT DISTINCT ?m WHERE { ?m property:shares_border_with resource:Kraków . ?m rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q31487
P190
Q20667921
USER
Which french administrative division is the sister city of that human settlement ?
(Q1164890,P190,c(Q20667921)) (Q1147589,P190,c(Q20667921)) (Q1147561,P190,c(Q20667921))
action filter_type
action find
entity Q31487
relation P190
type Q20667921
['Q1164890', 'P190', {'concept': 'Q20667921'}] ['Q1147589', 'P190', {'concept': 'Q20667921'}] ['Q1147561', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ?y WHERE { resource:Q31487 property:P190 ?y . ?y rdf:type ontology:Q20667921 }
Kraków
action filter_type
action find
entity Kraków
relation sister city
type type of french administrative division
['Kraków County', 'sister city', {'concept': 'type of french administrative division'}] ['Bochnia County', 'sister city', {'concept': 'type of french administrative division'}] ['Proszowice County', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?y WHERE { resource:Kraków property:sister_city ?y . ?y rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q6548
SYSTEM
Orléans
Q6548
(Q1164890,P190,c(Q20667921)) (Q1147589,P190,c(Q20667921)) (Q1147561,P190,c(Q20667921))
action filter_type
action find
entity Q31487
relation P190
type Q20667921
[ANSWER] is the sister city of that human settlement
['Q1164890', 'P190', {'concept': 'Q20667921'}] ['Q1147589', 'P190', {'concept': 'Q20667921'}] ['Q1147561', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ?y WHERE { resource:Q31487 property:P190 ?y . ?y rdf:type ontology:Q20667921 }
Orléans
Orléans is the sister city of that human settlement
Orléans
action filter_type
action find
entity Kraków
relation sister city
type type of french administrative division
['Kraków County', 'sister city', {'concept': 'type of french administrative division'}] ['Bochnia County', 'sister city', {'concept': 'type of french administrative division'}] ['Proszowice County', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?y WHERE { resource:Kraków property:sister_city ?y . ?y rdf:type ontology:type_of_french_administrative_division }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q6548 Q1087862
P47
Q20667921
USER
Does Castiglione have a shared border with that one ?
(Q6548,P47,Q1087862)
action is_in
entity Q1087862
action find
entity Q6548
relation P47
['Q6548', 'P47', 'Q1087862']
ASK WHERE { resource:Q6548 property:P47 resource:Q1087862 }
Orléans Castiglione
action is_in
entity Castiglione
action find
entity Orléans
relation shares border with
['Orléans', 'shares border with', 'Castiglione']
ASK WHERE { resource:Orléans property:shares_border_with resource:Castiglione }
[]
type of french administrative division
SYSTEM
NO
(Q6548,P47,Q1087862)
action is_in
entity Q1087862
action find
entity Q6548
relation P47
[ANSWER]
['Q6548', 'P47', 'Q1087862']
ASK WHERE { resource:Q6548 property:P47 resource:Q1087862 }
No
action is_in
entity Castiglione
action find
entity Orléans
relation shares border with
['Orléans', 'shares border with', 'Castiglione']
ASK WHERE { resource:Orléans property:shares_border_with resource:Castiglione }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q504513 Q946204 Q183
P17
Q1048835
USER
Is Bad Brückenau located in Nevogilde and Germany ?
(Q504513,P17,Q946204) (Q504513,P17,Q183)
action is_in
entity Q504513
action intersection
action find_reverse
entity Q946204
relation P17
action find_reverse
entity Q183
relation P17
['Q504513', 'P17', 'Q946204'] ['Q504513', 'P17', 'Q183']
ASK WHERE { resource:Q504513 property:P17 resource:Q946204 . resource:Q504513 property:P17 resource:Q183 }
Bad Brückenau Nevogilde Germany
action is_in
entity Bad Brückenau
action intersection
action find_reverse
entity Nevogilde
relation country
action find_reverse
entity Germany
relation country
['Bad Brückenau', 'country', 'Nevogilde'] ['Bad Brückenau', 'country', 'Germany']
ASK WHERE { resource:Bad_Brückenau property:country resource:Nevogilde . resource:Bad_Brückenau property:country resource:Germany }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q504513,P17,Q946204) (Q504513,P17,Q183)
action is_in
entity Q504513
action intersection
action find_reverse
entity Q946204
relation P17
action find_reverse
entity Q183
relation P17
[ANSWER]
['Q504513', 'P17', 'Q946204'] ['Q504513', 'P17', 'Q183']
ASK WHERE { resource:Q504513 property:P17 resource:Q946204 . resource:Q504513 property:P17 resource:Q183 }
NO and YES respectively
action is_in
entity Bad Brückenau
action intersection
action find_reverse
entity Nevogilde
relation country
action find_reverse
entity Germany
relation country
['Bad Brückenau', 'country', 'Nevogilde'] ['Bad Brückenau', 'country', 'Germany']
ASK WHERE { resource:Bad_Brückenau property:country resource:Nevogilde . resource:Bad_Brückenau property:country resource:Germany }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1147589 Q4827600
P17
Q15617994
USER
Is Bochnia County present in Avalon School District ?
(Q1147589,P17,Q4827600)
action is_in
entity Q4827600
action find
entity Q1147589
relation P17
['Q1147589', 'P17', 'Q4827600']
ASK WHERE { resource:Q1147589 property:P17 resource:Q4827600 }
Bochnia County Avalon School District
action is_in
entity Avalon School District
action find
entity Bochnia County
relation country
['Bochnia County', 'country', 'Avalon School District']
ASK WHERE { resource:Bochnia_County property:country resource:Avalon_School_District }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q1147589,P17,Q4827600)
action is_in
entity Q4827600
action find
entity Q1147589
relation P17
[ANSWER]
['Q1147589', 'P17', 'Q4827600']
ASK WHERE { resource:Q1147589 property:P17 resource:Q4827600 }
No
action is_in
entity Avalon School District
action find
entity Bochnia County
relation country
['Bochnia County', 'country', 'Avalon School District']
ASK WHERE { resource:Bochnia_County property:country resource:Avalon_School_District }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P159
Q486972 Q895526 Q7210356
USER
How many human settlements are the head offices of atleast 5 authority organs or political organizations ?
(c(Q895526)|c(Q7210356),P159,c(Q486972))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P159
type Q486972
type Q895526
action find_reverse_tuple_counts
relation P159
type Q486972
type Q7210356
value 5
[[{'concept': 'Q895526'}, {'concept': 'Q7210356'}], 'P159', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) ?o WHERE { VALUES ( ?q ) { ( ontology:Q895526 ) ( ontology:Q7210356 ) } . ?d rdf:type ?q } GROUP BY ?o } . FILTER ( ?n >= 5 ) }
action count
action atleast
action union
action find_reverse_tuple_counts
relation headquarters location
type human settlement
type authority organ
action find_reverse_tuple_counts
relation headquarters location
type human settlement
type political organization
value 5
[[{'concept': 'authority organ'}, {'concept': 'political organization'}], 'headquarters location', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) ?o WHERE { VALUES ( ?q ) { ( ontology:authority_organ ) ( ontology:political_organization ) } . ?d rdf:type ?q } GROUP BY ?o } . FILTER ( ?n >= 5 ) }
[]
human settlement authority organ political organization
SYSTEM
3
Q214051 Q3777 Q1197269
(c(Q895526)|c(Q7210356),P159,c(Q486972))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P159
type Q486972
type Q895526
action find_reverse_tuple_counts
relation P159
type Q486972
type Q7210356
value 5
[ANSWER]
[[{'concept': 'Q895526'}, {'concept': 'Q7210356'}], 'P159', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) ?o WHERE { VALUES ( ?q ) { ( ontology:Q895526 ) ( ontology:Q7210356 ) } . ?d rdf:type ?q } GROUP BY ?o } . FILTER ( ?n >= 5 ) }
Chiyoda-ku Ouagadougou Nagatachō
3
action count
action atleast
action union
action find_reverse_tuple_counts
relation headquarters location
type human settlement
type authority organ
action find_reverse_tuple_counts
relation headquarters location
type human settlement
type political organization
value 5
[[{'concept': 'authority organ'}, {'concept': 'political organization'}], 'headquarters location', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) ?o WHERE { VALUES ( ?q ) { ( ontology:authority_organ ) ( ontology:political_organization ) } . ?d rdf:type ?q } GROUP BY ?o } . FILTER ( ?n >= 5 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P361
Q107425 Q83620 Q486972
USER
Which human settlements are a component of min number of landscapes or thoroughfares ?
(c(Q486972),P361,c(Q107425)|c(Q83620))
action argmin
action union
action find_tuple_counts
relation P361
type Q486972
type Q107425
action find_tuple_counts
relation P361
type Q486972
type Q83620
[{'concept': 'Q486972'}, 'P361', [{'concept': 'Q107425'}, {'concept': 'Q83620'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) ?l WHERE { { ?l property:P361 ?j . ?l rdf:type ontology:Q486972 . ?j rdf:type ontology:Q107425 } UNION { ?l property:P361 ?j . ?j rdf:type ontology:Q83620 . ?l rdf:type ontology:Q486972 } } GROUP BY ?l } } . FILTER ( ?g = ?x ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) ?z WHERE { ?p rdf:type ?u . VALUES ( ?u ) { ( ontology:Q107425 ) ( ontology:Q83620 ) } } GROUP BY ?z } }
action argmin
action union
action find_tuple_counts
relation part of
type human settlement
type landscape
action find_tuple_counts
relation part of
type human settlement
type thoroughfare
[{'concept': 'human settlement'}, 'part of', [{'concept': 'landscape'}, {'concept': 'thoroughfare'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) ?l WHERE { { ?l property:part_of ?j . ?l rdf:type ontology:human_settlement . ?j rdf:type ontology:landscape } UNION { ?l property:part_of ?j . ?j rdf:type ontology:thoroughfare . ?l rdf:type ontology:human_settlement } } GROUP BY ?l } } . FILTER ( ?g = ?x ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) ?z WHERE { ?p rdf:type ?u . VALUES ( ?u ) { ( ontology:landscape ) ( ontology:thoroughfare ) } } GROUP BY ?z } }
[]
landscape thoroughfare human settlement
Q1055 Q1792 Q2916
SYSTEM
Hamburg, Gdańsk, Osnabrück
Q187083 Q17015330 Q10480508 Q10938668 Q20829076 Q1792 Q3930055 Q835970 Q6207554 Q3078331 Q1880458 Q779435 Q12039539 Q12411908 Q1382123 Q17135880 Q11868256 Q223665 Q1728622 Q1766678 Q2534613 Q1388834 Q1494698 Q2439172 Q26036989 Q12400416 Q1172 Q15830667 Q985993 Q313965 Q213464 Q28516 Q15843967 Q5124078 Q3238097 Q3070285 Q6546412 Q14906336 Q4829294 Q4356881 Q19825961 Q753891 Q2169091 Q5521973 Q2641320 Q3078075 Q1783238 Q2185163 Q1619526 Q1852859 Q1815646 Q21839544 Q1167 Q16329577 Q2273370 Q1041704 Q1709192 Q75013 Q4972008 Q10715546 Q19928975 Q2081422 Q1309539 Q16913767 Q644490 Q3925059 Q10602449 Q2214823 Q21489170 Q504787 Q2982040 Q5750556 Q502741 Q2888355 Q1563898 Q2919442 Q13188442 Q21206559 Q47554 Q582942 Q10534217 Q4875945 Q2109613 Q21282281 Q829042 Q311849 Q3021127 Q522651 Q1671815 Q2900311 Q1573 Q3126518 Q2381518 Q552523 Q1291451 Q5122339 Q1124159 Q1981743 Q324333 Q21282211 Q1484905 Q894219 Q1900690 Q16984072 Q129421 Q3208442 Q3661515 Q3705854 Q12346613 Q21282291 Q1019962 Q2419722 Q12039044 Q1560 Q1175 Q738570 Q502939 Q2359453 Q1055 Q5388220 Q106681 Q768542 Q1306755 Q1928594 Q1519771 Q263163 Q2013440 Q2904338 Q628163 Q20743728 Q1582 Q1310344 Q1580 Q10611682 Q314066 Q21282229 Q2067247 Q8078647 Q1181 Q19358914 Q1627459 Q564771 Q5309834 Q18202246 Q4980887 Q741012 Q15310264 Q1479493 Q389859 Q5056561 Q21402029 Q969850 Q604435 Q21282200 Q2084302 Q1809602 Q1020465 Q14613273 Q2657150 Q2370380 Q2632124 Q1441767 Q7007038 Q1781931 Q1923151 Q22115820 Q2916464 Q576339 Q1468524 Q3149657 Q661881 Q10667344 Q16583062 Q2360524 Q1138 Q2446 Q20018082 Q960480 Q591133 Q681873 Q4890135 Q1115511 Q10275877 Q151535 Q15058012 Q571034 Q1745254 Q502965 Q1015257 Q15122405 Q10727797 Q20759083 Q1498523 Q590710 Q689727 Q870499 Q5008786 Q251873 Q17278559 Q17496291 Q1881273 Q2916 Q104725 Q2392816 Q1788552 Q21199137
(c(Q486972),P361,c(Q107425)|c(Q83620))
action argmin
action union
action find_tuple_counts
relation P361
type Q486972
type Q107425
action find_tuple_counts
relation P361
type Q486972
type Q83620
[ANSWERS] are a component of min number of landscapes or thoroughfares
[{'concept': 'Q486972'}, 'P361', [{'concept': 'Q107425'}, {'concept': 'Q83620'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) ?l WHERE { { ?l property:P361 ?j . ?l rdf:type ontology:Q486972 . ?j rdf:type ontology:Q107425 } UNION { ?l property:P361 ?j . ?j rdf:type ontology:Q83620 . ?l rdf:type ontology:Q486972 } } GROUP BY ?l } } . FILTER ( ?g = ?x ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) ?z WHERE { ?p rdf:type ?u . VALUES ( ?u ) { ( ontology:Q107425 ) ( ontology:Q83620 ) } } GROUP BY ?z } }
Zeitungsviertel Neighborhoods of Minneapolis Ekeby Západní Město Savan Gdańsk Bistrik Rückschlag Jockey Hollow Fort Trois-Rivières Lütten Klein Wrony, Lower Silesian Voivodeship rural township of Taiwan Sha'arei Yerushalayim Evershagen frazione of Genoa Jyskä Angkor Thom University of California, Merced Tormaleo Poggio di San Remo Freiendiez Garden city Crengeldanz Spaarndam-West Gasteig Sete de Arriba Groß Borstel Quarter of  Hamburg Jamaica Plain Unterliederbach Adachi Tarnobrzeg Sangenstedt Cityplace Lichtenbusch Europawijk Lightning Bad Liebenstein Avondale Solberga Leoni San Miguel de Allende Rottorf Garbacz Col du Pourtalet Fort Senneville Kontorhaus District Het Lage Land Hinrichshagen populated place in the Netherlands Leipzig suburb Lichtenbusch Alsterdorf Lower Toumba Centrum Capitol Hill Lärkstaden Österskär Broadacres Villastaden Caumerveld German campaign in Angola Toitenwinkel Heißum Hufeisensiedlung Boerhaavewijk Norra Hammarbyhamnen Salmünster Spangen Volkach Cahuenga Pass Hiawatha Iphofen Morgenstond Wiethagen Waldeck Holte Kraburg Toruń Fladungen Igelboda Beacon Hill Monte Masoni Roydorf Strümp Warnemünde Deep Ellum Marktbreit Winterberg Ma'alot Dafna Kleiner Grasbrook Hammarby Sjöstad Südstadt Mellrichstadt Salzbrunn Cisów, Lower Silesian Voivodeship Stadtmitte Neustädtel Ruitzhof Bahlburg Hohe Düne Borstel Markgrafenheide Belmont Park University of California, Davis La Défense 1 Casbeno Dergano Dorf Wehlen Scharmbeck Börnicke Theresienhöhe urban township of Taiwan St. Georg (Hamburg) Langenhorn central business district Stadtprozelten Stuthof Hamburg Ericsson Włocławek Andrews Field administrative centre Historic Centre Tönnhausen Moosach Spaarndam-Oost Mekor Chaim Rothenfels Boldenshagen Steinwerder Talpiot Rothenburgsort Ormsta Bergen-Enkheim Luhdorf Peez Îlot-Trafalgar-Gleneagles Hoheluft Campus Bizzozero Hoopte Glauberg Drzetowo Kiel Bryn Mawr Rostock-Lichtenhagen Altstadt Pattensen Somport Cedar-Isles-Dean Quarrendorf Stony Brook University microdistrict Gehrden Spoorwijk Laßrönne Büderich Axelsberg Zeeheldenkwartier Igeldo Meerwijk Grabowo, Szczecin New Durham, North Bergen Muslim Quarter Dutch Velders Pastitz Baka Albayzín city centre Molenwijk Speicherstadt Sickla udde Nowy Most Stöckte Barmbek-Nord Dolberg Musschemig Ellsworth Air Force Base Old Town Schmarl Benoordenhout Sallern Irajá Sachsenhausen residential area Podgórna, Lower Silesian Voivodeship Neuseesen Marktsteft Oltrarno Mützenich Östberga Einhusen Gehlsdorf New Town Fort Garry Ouchy CARAG Weiße Stadt Quarter of Bremen Upper Toumba Seymerich Osnabrück Płock Bois-du-Luc Krieau Ramstein
Hamburg, Gdańsk and Osnabrück are a component of min number of landscapes or thoroughfares
Hamburg Gdańsk Osnabrück
action argmin
action union
action find_tuple_counts
relation part of
type human settlement
type landscape
action find_tuple_counts
relation part of
type human settlement
type thoroughfare
[{'concept': 'human settlement'}, 'part of', [{'concept': 'landscape'}, {'concept': 'thoroughfare'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?x ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) ?l WHERE { { ?l property:part_of ?j . ?l rdf:type ontology:human_settlement . ?j rdf:type ontology:landscape } UNION { ?l property:part_of ?j . ?j rdf:type ontology:thoroughfare . ?l rdf:type ontology:human_settlement } } GROUP BY ?l } } . FILTER ( ?g = ?x ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) ?z WHERE { ?p rdf:type ?u . VALUES ( ?u ) { ( ontology:landscape ) ( ontology:thoroughfare ) } } GROUP BY ?z } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q54680 Q4827600
P47 P17
Q15617994
USER
Which administrative territories are Avalon School District situated in or are adjacent to Stilo ?
OR((Q4827600,P17,c(Q15617994)), (Q54680,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q4827600
relation P17
action find
entity Q54680
relation P47
type Q15617994
{'OR': [['Q4827600', 'P17', {'concept': 'Q15617994'}], ['Q54680', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q54680 property:P47 ?s } UNION { resource:Q4827600 property:P17 ?s } } . ?s rdf:type ontology:Q15617994 }
Stilo Avalon School District
action filter_type
action union
action find
entity Avalon School District
relation country
action find
entity Stilo
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Avalon School District', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Stilo', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Stilo property:shares_border_with ?s } UNION { resource:Avalon_School_District property:country ?s } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q54699 Q54721 Q54723 Q54744 Q54628 Q54739 Q54634 Q30 Q54569 Q54586
SYSTEM
Brognaturo, Mongiana, Nardodipace, Spadola, Monasterace, Serra San Bruno, Pazzano, United States of America, Bivongi, Camini
Q54699 Q54721 Q54723 Q54744 Q54628 Q54739 Q54634 Q30 Q54569 Q54586
OR((Q4827600,P17,c(Q15617994)), (Q54680,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q4827600
relation P17
action find
entity Q54680
relation P47
type Q15617994
Avalon School District are situated in [ANSWERS] or are adjacent to Stilo
{'OR': [['Q4827600', 'P17', {'concept': 'Q15617994'}], ['Q54680', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q54680 property:P47 ?s } UNION { resource:Q4827600 property:P17 ?s } } . ?s rdf:type ontology:Q15617994 }
Brognaturo Mongiana Nardodipace Spadola Monasterace Serra San Bruno Pazzano United States of America Bivongi Camini
Avalon School District are situated in Brognaturo, Mongiana, Nardodipace, Spadola, Monasterace, Serra San Bruno, Pazzano, United States of America, Bivongi and Camini or are adjacent to Stilo
Brognaturo Mongiana Nardodipace Spadola Monasterace Serra San Bruno Pazzano United States of America Bivongi Camini
action filter_type
action union
action find
entity Avalon School District
relation country
action find
entity Stilo
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Avalon School District', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Stilo', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Stilo property:shares_border_with ?s } UNION { resource:Avalon_School_District property:country ?s } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q54699 Q54721 Q54723 Q54744 Q54628 Q54739 Q54634 Q30 Q54569 Q54586
P47
Q15617994
USER
Which administrative territories are adjacent to those ones ?
(Q54699,P47,c(Q15617994)) (Q54721,P47,c(Q15617994)) (Q54723,P47,c(Q15617994)) (Q54744,P47,c(Q15617994)) (Q54628,P47,c(Q15617994)) (Q54739,P47,c(Q15617994)) (Q54634,P47,c(Q15617994)) (Q30,P47,c(Q15617994)) (Q54569,P47,c(Q15617994)) (Q54586,P47,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P47
type Q15617994
['Q54699', 'P47', {'concept': 'Q15617994'}] ['Q54721', 'P47', {'concept': 'Q15617994'}] ['Q54723', 'P47', {'concept': 'Q15617994'}] ['Q54744', 'P47', {'concept': 'Q15617994'}] ['Q54628', 'P47', {'concept': 'Q15617994'}] ['Q54739', 'P47', {'concept': 'Q15617994'}] ['Q54634', 'P47', {'concept': 'Q15617994'}] ['Q30', 'P47', {'concept': 'Q15617994'}] ['Q54569', 'P47', {'concept': 'Q15617994'}] ['Q54586', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { VALUES ( ?f ) { ( resource:Q54699 ) ( resource:Q54721 ) ( resource:Q54723 ) } . ?f property:P47 ?r . ?r rdf:type ontology:Q15617994 }
Brognaturo Mongiana Nardodipace Spadola Monasterace Serra San Bruno Pazzano United States of America Bivongi Camini
action filter_type
action find
entity prev_answer
relation shares border with
type designation for an administrative territorial entity
['Brognaturo', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Mongiana', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Nardodipace', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Spadola', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Monasterace', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Serra San Bruno', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Pazzano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['United States of America', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Bivongi', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Camini', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { VALUES ( ?f ) { ( resource:Brognaturo ) ( resource:Mongiana ) ( resource:Nardodipace ) } . ?f property:shares_border_with ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q159 Q17 Q96
SYSTEM
Russia, Japan, Mexico
Q53503 Q53691 Q53693 Q53495 Q54680 Q54740 Q54744 Q54723 Q54739 Q54680 Q54697 Q54706 Q54721 Q54680 Q54706 Q54623 Q54597 Q54634 Q54642 Q54699 Q54741 Q54740 Q54680 Q54739 Q54713 Q54680 Q54721 Q54744 Q54740 Q54680 Q54697 Q54713 Q54723 Q54680 Q54635 Q54597 Q54569 Q702 Q804 Q159 Q683 Q96 Q786 Q241 Q17 Q710 Q717 Q678 Q790 Q54680 Q54634 Q54639 Q54680
(Q54699,P47,c(Q15617994)) (Q54721,P47,c(Q15617994)) (Q54723,P47,c(Q15617994)) (Q54744,P47,c(Q15617994)) (Q54628,P47,c(Q15617994)) (Q54739,P47,c(Q15617994)) (Q54634,P47,c(Q15617994)) (Q30,P47,c(Q15617994)) (Q54569,P47,c(Q15617994)) (Q54586,P47,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P47
type Q15617994
[ANSWERS] are adjacent to those ones
['Q54699', 'P47', {'concept': 'Q15617994'}] ['Q54721', 'P47', {'concept': 'Q15617994'}] ['Q54723', 'P47', {'concept': 'Q15617994'}] ['Q54744', 'P47', {'concept': 'Q15617994'}] ['Q54628', 'P47', {'concept': 'Q15617994'}] ['Q54739', 'P47', {'concept': 'Q15617994'}] ['Q54634', 'P47', {'concept': 'Q15617994'}] ['Q30', 'P47', {'concept': 'Q15617994'}] ['Q54569', 'P47', {'concept': 'Q15617994'}] ['Q54586', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { VALUES ( ?f ) { ( resource:Q54699 ) ( resource:Q54721 ) ( resource:Q54723 ) } . ?f property:P47 ?r . ?r rdf:type ontology:Q15617994 }
Cardinale San Sostene Santa Caterina dello Ionio Badolato Stilo Simbario Spadola Nardodipace Serra San Bruno Stilo Arena, Calabria Fabrizia Mongiana Stilo Fabrizia Martone Caulonia Pazzano Roccella Ionica Brognaturo Sorianello Simbario Stilo Serra San Bruno Gerocarne Stilo Mongiana Spadola Simbario Stilo Arena, Calabria Gerocarne Nardodipace Stilo Placanica Caulonia Bivongi Federated States of Micronesia Panama Russia Samoa Mexico Dominican Republic Cuba Japan Kiribati Venezuela Tonga Haiti Stilo Pazzano Riace Stilo
Russia, Japan and Mexico are adjacent to those ones
Russia Japan Mexico
action filter_type
action find
entity prev_answer
relation shares border with
type designation for an administrative territorial entity
['Brognaturo', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Mongiana', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Nardodipace', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Spadola', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Monasterace', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Serra San Bruno', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Pazzano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['United States of America', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Bivongi', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Camini', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { VALUES ( ?f ) { ( resource:Brognaturo ) ( resource:Mongiana ) ( resource:Nardodipace ) } . ?f property:shares_border_with ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]