Simple Question (Direct)
Simple Question
Q72467
P641
Q349
USER
What was the sport that Thomas Greiss was a part of ?
(Q72467,P641,c(Q349))
action filter_type
action find
entity Q72467
relation P641
type Q349
['Q72467', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?k WHERE { resource:Q72467 property:P641 ?k . ?k rdf:type ontology:Q349 }
Thomas Greiss
action filter_type
action find
entity Thomas Greiss
relation sport
type sport
['Thomas Greiss', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?k WHERE { resource:Thomas_Greiss property:sport ?k . ?k rdf:type ontology:sport }
[]
sport
Q41466
SYSTEM
ice hockey
Q41466
(Q72467,P641,c(Q349))
action filter_type
action find
entity Q72467
relation P641
type Q349
The sport that Thomas Greiss was a part of was h [ANSWER]
['Q72467', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?k WHERE { resource:Q72467 property:P641 ?k . ?k rdf:type ontology:Q349 }
ice hockey
The sport that Thomas Greiss was a part of was h ice hockey
ice hockey
action filter_type
action find
entity Thomas Greiss
relation sport
type sport
['Thomas Greiss', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?k WHERE { resource:Thomas_Greiss property:sport ?k . ?k rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q72467
P1344
Q15900616
USER
What event sequences did Thomas Greiss participate in ?
(Q72467,P1344,c(Q15900616))
action filter_type
action find
entity Q72467
relation P1344
type Q15900616
['Q72467', 'P1344', {'concept': 'Q15900616'}]
SELECT DISTINCT ?z WHERE { resource:Q72467 property:P1344 ?z . ?z rdf:type ontology:Q15900616 }
Thomas Greiss
action filter_type
action find
entity Thomas Greiss
relation participant of
type event sequence
['Thomas Greiss', 'participant of', {'concept': 'event sequence'}]
SELECT DISTINCT ?z WHERE { resource:Thomas_Greiss property:participant_of ?z . ?z rdf:type ontology:event_sequence }
[]
event sequence
Q9672 Q9674
SYSTEM
2006 Winter Olympics, 2010 Winter Olympics
Q9672 Q9674
(Q72467,P1344,c(Q15900616))
action filter_type
action find
entity Q72467
relation P1344
type Q15900616
Thomas Greiss participated in [ANSWERS]
['Q72467', 'P1344', {'concept': 'Q15900616'}]
SELECT DISTINCT ?z WHERE { resource:Q72467 property:P1344 ?z . ?z rdf:type ontology:Q15900616 }
2006 Winter Olympics 2010 Winter Olympics
Thomas Greiss participated in 2006 Winter Olympics and 2010 Winter Olympics
2006 Winter Olympics 2010 Winter Olympics
action filter_type
action find
entity Thomas Greiss
relation participant of
type event sequence
['Thomas Greiss', 'participant of', {'concept': 'event sequence'}]
SELECT DISTINCT ?z WHERE { resource:Thomas_Greiss property:participant_of ?z . ?z rdf:type ontology:event_sequence }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9674
P17
Q1048835
USER
Which political territory is 2010 Winter Olympics situated in ?
(Q9674,P17,c(Q1048835))
action filter_type
action find
entity Q9674
relation P17
type Q1048835
['Q9674', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q9674 property:P17 ?a . ?a rdf:type ontology:Q1048835 }
2010 Winter Olympics
action filter_type
action find
entity 2010 Winter Olympics
relation country
type political territorial entity
['2010 Winter Olympics', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:2010_Winter_Olympics property:country ?a . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q9674,P17,c(Q1048835))
action filter_type
action find
entity Q9674
relation P17
type Q1048835
Which political territory is 2010 Winter Olympics situated in
['Q9674', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q9674 property:P17 ?a . ?a rdf:type ontology:Q1048835 }
Canada
Which political territory is 2010 Winter Olympics situated in
Canada
action filter_type
action find
entity 2010 Winter Olympics
relation country
type political territorial entity
['2010 Winter Olympics', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:2010_Winter_Olympics property:country ?a . ?a rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q205089
P1376
Q1048835 Q515 Q486972
USER
How many political territories have more number of cities and human settlements as their capital than Áncash Region ?
(c(Q515)|c(Q486972),P1376,c(Q1048835))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q515
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q486972
action count
action filter_multi_types
action find_reverse
entity Q205089
relation P1376
type Q515
type Q486972
[[{'concept': 'Q515'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) ?t WHERE { ?e rdf:type ?h . VALUES ( ?h ) { ( ontology:Q515 ) ( ontology:Q486972 ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { ?y property:P1376 resource:Q205089 . { { ?y rdf:type ontology:Q515 } UNION { ?y rdf:type ontology:Q486972 } } } } . FILTER ( ?p > ?g ) }
Áncash Region
action count
action greater
action union
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type human settlement
action count
action filter_multi_types
action find_reverse
entity Áncash Region
relation capital of
type city
type human settlement
[[{'concept': 'city'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) ?t WHERE { ?e rdf:type ?h . VALUES ( ?h ) { ( ontology:city ) ( ontology:human_settlement ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { ?y property:capital_of resource:Áncash_Region . { { ?y rdf:type ontology:city } UNION { ?y rdf:type ontology:human_settlement } } } } . FILTER ( ?p > ?g ) }
[]
political territorial entity city human settlement
SYSTEM
159
Q7130037 Q13881 Q13882 Q13884 Q13889 Q785 Q13726 Q2051 Q3891 Q3899 Q3321945 Q2175 Q2271 Q48060 Q10500690 Q13900 Q3317759 Q170390 Q8170 Q168651 Q3312902 Q2702993 Q3741 Q2223 Q22880 Q6156 Q13786 Q13785 Q13869 Q13868 Q13865 Q13863 Q13862 Q10547 Q10469 Q10462 Q10466 Q1890 Q971457 Q664 Q12741 Q6339 Q5082 Q5065 Q5067 Q5061 Q5062 Q5068 Q13737 Q2846059 Q7932 Q6319070 Q2140 Q13827 Q13826 Q13825 Q13829 Q953068 Q2718534 Q170036 Q9648 Q3125978 Q5455586 Q6319759 Q13857 Q3313430 Q5088519 Q757 Q13772 Q6318695 Q6301 Q7890 Q3916 Q13794 Q13791 Q13792 Q13813 Q3826003 Q48079 Q5093 Q5095 Q671742 Q5075 Q193619 Q13744 Q48094 Q192697 Q2772 Q13874 Q7928 Q7258563 Q8050384 Q3314201 Q1468315 Q188373 Q48046 Q7414539 Q2101298 Q1823 Q1769672 Q13844 Q13847 Q13843 Q2594990 Q1229942 Q8195 Q2110 Q48072 Q3586 Q13892 Q13891 Q13899 Q5444794 Q593806 Q3906 Q201697 Q7827062 Q1866 Q4694508 Q13809 Q13860 Q13806 Q170672 Q240441 Q24174 Q10440 Q49655 Q3824193 Q190930 Q13753 Q13752 Q13755 Q13759 Q8167 Q571947 Q48089 Q7916 Q7912 Q48106 Q2307775 Q3540 Q5856660 Q2697637 Q10526 Q10480 Q10485 Q13870 Q13872 Q3724 Q13876 Q48057 Q6013498 Q6328 Q10557 Q10555 Q2902 Q10559 Q5924968 Q35086
(c(Q515)|c(Q486972),P1376,c(Q1048835))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q515
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q486972
action count
action filter_multi_types
action find_reverse
entity Q205089
relation P1376
type Q515
type Q486972
[ANSWER]
[[{'concept': 'Q515'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) ?t WHERE { ?e rdf:type ?h . VALUES ( ?h ) { ( ontology:Q515 ) ( ontology:Q486972 ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { ?y property:P1376 resource:Q205089 . { { ?y rdf:type ontology:Q515 } UNION { ?y rdf:type ontology:Q486972 } } } } . FILTER ( ?p > ?g ) }
Panao District Sorsogon South Cotabato Southern Leyte Surigao del Norte Jersey Albay Jambi Province Kalimantan Tengah Kalimantan Timur Acarí District Riau Province South Sumatra Gera District San Miguel District Zamboanga del Sur Putumayo District County of Oldenburg Tübingen Landgraviate of Hesse-Kassel Coya District Haquira District Special Region of Yogyakarta Kepulauan Riau Electoral Palatinate Oberspreewald-Lausitz Cebu Cavite Palawan Oriental Mindoro Nueva Ecija Negros Oriental Negros Occidental Lower Franconia Main-Spessart Haßberge Bad Kissingen Bengkulu Province Lunahuaná District New Zealand Ilocos Sur Erzgebirgskreis West Sulawesi Central Sulawesi Province Gorontalo Province East Nusa Tenggara Province West Nusa Tenggara North Sulawesi Province Basilan Andahuaylillas District Darmstadt Government Region Magdalena de Cao District North Sumatra Province Kalinga Isabela Iloilo La Union South-West Africa Lurigancho Kiev Oblast Falkland Islands Bali Fitzcarrald Sicaya District Misamis Occidental Antioquia District Chavinillo District Saint Vincent and the Grenadines Capiz Pimentel Nordsachsen Kassel Kalimantan Barat Davao del Sur Cotabato Davao del Norte Ilocos Norte Chucuito District Leipzig District Maluku Province Papua General Pueyrredón South East Sulawesi Province Union of South Africa Batangas Potsdam District South Moravian Region West Sumatra Rizal Kassel  Government Region Puerto Inca District Yavari District Achoma District Pozuzo District South Bohemia Region Cottbus San José de Sisa District Tandil Aceh La Sotonera Leyte Masbate Lanao del Sur Dominion of New Zealand La Jalca District Breisgau-Hochschwarzwald Lampung Province Karl-Marx-Stadt District East Java Tarlac Surigao del Sur Zamboanga del Norte Fernando Lores District Llata District Kalimantan Selatan Leimebamba District Torres Causana District Bangka–Belitung Islands Aguas Verdes Eastern Samar Misamis Oriental Davao Oriental Dnipropetrovsk Oblast General Alvarado Partido Dresden Government Region Coburg Schellenberg Querobamba District Vysočina Region Bukidnon Bohol Bulacan Cagayan Freiburg Government Region Bautzen Neubrandenburg District Darmstadt-Dieburg Offenbach Suhl District Sepahua Banten Province Mito District San Marcos District Rosenheim Dingolfing-Landau Deggendorf Pampanga Quezon West Java Province Samar Frankfurt (Oder) Inambari Mittelsachsen Swabia Upper Palatinate Mecklenburgische Seenplatte District Lower Bavaria Huacaybamba South Georgia and the South Sandwich Islands
159
action count
action greater
action union
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type human settlement
action count
action filter_multi_types
action find_reverse
entity Áncash Region
relation capital of
type city
type human settlement
[[{'concept': 'city'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) ?t WHERE { ?e rdf:type ?h . VALUES ( ?h ) { ( ontology:city ) ( ontology:human_settlement ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { ?y property:capital_of resource:Áncash_Region . { { ?y rdf:type ontology:city } UNION { ?y rdf:type ontology:human_settlement } } } } . FILTER ( ?p > ?g ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q8172
P1376
Q1048835 Q515 Q486972
USER
And also tell me about Stuttgart Government Region?
(c(Q515)|c(Q486972),P1376,c(Q1048835))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q515
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q486972
action count
action filter_multi_types
action find_reverse
entity Q8172
relation P1376
type Q515
type Q486972
[[{'concept': 'Q515'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { ?x property:P1376 resource:Q8172 . { { ?x rdf:type ontology:Q515 } UNION { ?x rdf:type ontology:Q486972 } } } } . FILTER ( ?l > ?n ) . { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?l ) WHERE { { ?d property:P1376 ?q . ?q rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q486972 } UNION { ?d property:P1376 ?q . ?q rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q515 } } GROUP BY ?q } }
Stuttgart Government Region
action count
action greater
action union
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type human settlement
action count
action filter_multi_types
action find_reverse
entity Stuttgart Government Region
relation capital of
type city
type human settlement
[[{'concept': 'city'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { ?x property:capital_of resource:Stuttgart_Government_Region . { { ?x rdf:type ontology:city } UNION { ?x rdf:type ontology:human_settlement } } } } . FILTER ( ?l > ?n ) . { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?l ) WHERE { { ?d property:capital_of ?q . ?q rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:human_settlement } UNION { ?d property:capital_of ?q . ?q rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:city } } GROUP BY ?q } }
[]
political territorial entity city human settlement
SYSTEM
159
Q7130037 Q13881 Q13882 Q13884 Q13889 Q785 Q13726 Q2051 Q3891 Q3899 Q3321945 Q2175 Q2271 Q48060 Q10500690 Q13900 Q3317759 Q170390 Q8170 Q168651 Q3312902 Q2702993 Q3741 Q2223 Q22880 Q6156 Q13786 Q13785 Q13869 Q13868 Q13865 Q13863 Q13862 Q10547 Q10469 Q10462 Q10466 Q1890 Q971457 Q664 Q12741 Q6339 Q5082 Q5065 Q5067 Q5061 Q5062 Q5068 Q13737 Q2846059 Q7932 Q6319070 Q2140 Q13827 Q13826 Q13825 Q13829 Q953068 Q2718534 Q170036 Q9648 Q3125978 Q5455586 Q6319759 Q13857 Q3313430 Q5088519 Q757 Q13772 Q6318695 Q6301 Q7890 Q3916 Q13794 Q13791 Q13792 Q13813 Q3826003 Q48079 Q5093 Q5095 Q671742 Q5075 Q193619 Q13744 Q48094 Q192697 Q2772 Q13874 Q7928 Q7258563 Q8050384 Q3314201 Q1468315 Q188373 Q48046 Q7414539 Q2101298 Q1823 Q1769672 Q13844 Q13847 Q13843 Q2594990 Q1229942 Q8195 Q2110 Q48072 Q3586 Q13892 Q13891 Q13899 Q5444794 Q593806 Q3906 Q201697 Q7827062 Q1866 Q4694508 Q13809 Q13860 Q13806 Q170672 Q240441 Q24174 Q10440 Q49655 Q3824193 Q190930 Q13753 Q13752 Q13755 Q13759 Q8167 Q571947 Q48089 Q7916 Q7912 Q48106 Q2307775 Q3540 Q5856660 Q2697637 Q10526 Q10480 Q10485 Q13870 Q13872 Q3724 Q13876 Q48057 Q6013498 Q6328 Q10557 Q10555 Q2902 Q10559 Q5924968 Q35086
(c(Q515)|c(Q486972),P1376,c(Q1048835))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q515
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q486972
action count
action filter_multi_types
action find_reverse
entity Q8172
relation P1376
type Q515
type Q486972
[ANSWER]
[[{'concept': 'Q515'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { ?x property:P1376 resource:Q8172 . { { ?x rdf:type ontology:Q515 } UNION { ?x rdf:type ontology:Q486972 } } } } . FILTER ( ?l > ?n ) . { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?l ) WHERE { { ?d property:P1376 ?q . ?q rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q486972 } UNION { ?d property:P1376 ?q . ?q rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q515 } } GROUP BY ?q } }
Panao District Sorsogon South Cotabato Southern Leyte Surigao del Norte Jersey Albay Jambi Province Kalimantan Tengah Kalimantan Timur Acarí District Riau Province South Sumatra Gera District San Miguel District Zamboanga del Sur Putumayo District County of Oldenburg Tübingen Landgraviate of Hesse-Kassel Coya District Haquira District Special Region of Yogyakarta Kepulauan Riau Electoral Palatinate Oberspreewald-Lausitz Cebu Cavite Palawan Oriental Mindoro Nueva Ecija Negros Oriental Negros Occidental Lower Franconia Main-Spessart Haßberge Bad Kissingen Bengkulu Province Lunahuaná District New Zealand Ilocos Sur Erzgebirgskreis West Sulawesi Central Sulawesi Province Gorontalo Province East Nusa Tenggara Province West Nusa Tenggara North Sulawesi Province Basilan Andahuaylillas District Darmstadt Government Region Magdalena de Cao District North Sumatra Province Kalinga Isabela Iloilo La Union South-West Africa Lurigancho Kiev Oblast Falkland Islands Bali Fitzcarrald Sicaya District Misamis Occidental Antioquia District Chavinillo District Saint Vincent and the Grenadines Capiz Pimentel Nordsachsen Kassel Kalimantan Barat Davao del Sur Cotabato Davao del Norte Ilocos Norte Chucuito District Leipzig District Maluku Province Papua General Pueyrredón South East Sulawesi Province Union of South Africa Batangas Potsdam District South Moravian Region West Sumatra Rizal Kassel  Government Region Puerto Inca District Yavari District Achoma District Pozuzo District South Bohemia Region Cottbus San José de Sisa District Tandil Aceh La Sotonera Leyte Masbate Lanao del Sur Dominion of New Zealand La Jalca District Breisgau-Hochschwarzwald Lampung Province Karl-Marx-Stadt District East Java Tarlac Surigao del Sur Zamboanga del Norte Fernando Lores District Llata District Kalimantan Selatan Leimebamba District Torres Causana District Bangka–Belitung Islands Aguas Verdes Eastern Samar Misamis Oriental Davao Oriental Dnipropetrovsk Oblast General Alvarado Partido Dresden Government Region Coburg Schellenberg Querobamba District Vysočina Region Bukidnon Bohol Bulacan Cagayan Freiburg Government Region Bautzen Neubrandenburg District Darmstadt-Dieburg Offenbach Suhl District Sepahua Banten Province Mito District San Marcos District Rosenheim Dingolfing-Landau Deggendorf Pampanga Quezon West Java Province Samar Frankfurt (Oder) Inambari Mittelsachsen Swabia Upper Palatinate Mecklenburgische Seenplatte District Lower Bavaria Huacaybamba South Georgia and the South Sandwich Islands
159
action count
action greater
action union
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type human settlement
action count
action filter_multi_types
action find_reverse
entity Stuttgart Government Region
relation capital of
type city
type human settlement
[[{'concept': 'city'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { ?x property:capital_of resource:Stuttgart_Government_Region . { { ?x rdf:type ontology:city } UNION { ?x rdf:type ontology:human_settlement } } } } . FILTER ( ?l > ?n ) . { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?l ) WHERE { { ?d property:capital_of ?q . ?q rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:human_settlement } UNION { ?d property:capital_of ?q . ?q rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:city } } GROUP BY ?q } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8172
P47
Q1048835
USER
Which political territory shares border with that one ?
action filter_type
action find
entity Q8172
relation P47
type Q1048835
SELECT DISTINCT ?h WHERE { resource:Q8172 property:P47 ?h . ?h rdf:type ontology:Q1048835 }
Stuttgart Government Region
action filter_type
action find
entity Stuttgart Government Region
relation shares border with
type political territorial entity
SELECT DISTINCT ?h WHERE { resource:Stuttgart_Government_Region property:shares_border_with ?h . ?h rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q10547
SYSTEM
Lower Franconia
Q10547
action filter_type
action find
entity Q8172
relation P47
type Q1048835
[ANSWER] shares border with that one
SELECT DISTINCT ?h WHERE { resource:Q8172 property:P47 ?h . ?h rdf:type ontology:Q1048835 }
Lower Franconia
Lower Franconia shares border with that one
Lower Franconia
action filter_type
action find
entity Stuttgart Government Region
relation shares border with
type political territorial entity
SELECT DISTINCT ?h WHERE { resource:Stuttgart_Government_Region property:shares_border_with ?h . ?h rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q10547
P36
Q515
USER
Which city is known as the capital of that political territory ?
(Q10547,P36,c(Q515))
action filter_type
action find
entity Q10547
relation P36
type Q515
['Q10547', 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?p WHERE { resource:Q10547 property:P36 ?p . ?p rdf:type ontology:Q515 }
Lower Franconia
action filter_type
action find
entity Lower Franconia
relation capital
type city
['Lower Franconia', 'capital', {'concept': 'city'}]
SELECT DISTINCT ?p WHERE { resource:Lower_Franconia property:capital ?p . ?p rdf:type ontology:city }
[]
city
Q2999
SYSTEM
Würzburg
Q2999
(Q10547,P36,c(Q515))
action filter_type
action find
entity Q10547
relation P36
type Q515
[ANSWER] is known as the capital of that political territory
['Q10547', 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?p WHERE { resource:Q10547 property:P36 ?p . ?p rdf:type ontology:Q515 }
Würzburg
Würzburg is known as the capital of that political territory
Würzburg
action filter_type
action find
entity Lower Franconia
relation capital
type city
['Lower Franconia', 'capital', {'concept': 'city'}]
SELECT DISTINCT ?p WHERE { resource:Lower_Franconia property:capital ?p . ?p rdf:type ontology:city }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q854940
P190
Q515 Q515
USER
Which cities are twin city of greater number of cities than Dabas ?
(c(Q515),P190,c(Q515))
action greater
action find_tuple_counts
relation P190
type Q515
type Q515
action count
action filter_type
action find
entity Q854940
relation P190
type Q515
[{'concept': 'Q515'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?z ) WHERE { ?i property:P190 ?b . ?i rdf:type ontology:Q515 . ?b rdf:type ontology:Q515 } GROUP BY ?i } . FILTER ( ?z > ?g ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { resource:Q854940 property:P190 ?v . ?v rdf:type ontology:Q515 } } }
Dabas
action greater
action find_tuple_counts
relation sister city
type city
type city
action count
action filter_type
action find
entity Dabas
relation sister city
type city
[{'concept': 'city'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?z ) WHERE { ?i property:sister_city ?b . ?i rdf:type ontology:city . ?b rdf:type ontology:city } GROUP BY ?i } . FILTER ( ?z > ?g ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { resource:Dabas property:sister_city ?v . ?v rdf:type ontology:city } } }
[]
city city
Q1486 Q1773 Q1899
SYSTEM
Buenos Aires, Riga, Kyiv
Q23430 Q3572 Q3870 Q11736 Q696694 Q837968 Q240504 Q3624 Q43199 Q20934 Q57958 Q14424 Q3926 Q11462 Q384796 Q23482 Q16520 Q19689 Q2910 Q1899 Q26600 Q1794 Q3846983 Q72818 Q1486 Q17042 Q1461 Q842984 Q198370 Q2973 Q1519 Q8684 Q3838 Q837157 Q14819 Q137271 Q8652 Q3861 Q587746 Q3919 Q19660 Q200267 Q2844 Q3915 Q533078 Q124375 Q42635 Q9005 Q252325 Q2773 Q837161 Q205922 Q14440 Q1773 Q2079 Q252061 Q166829 Q214948 Q68481 Q267708 Q680656 Q1508 Q2749 Q11194 Q485581 Q390796 Q5972 Q843014 Q11725 Q2207 Q851056 Q76010 Q42622 Q59095 Q839796 Q146317 Q203344 Q20921 Q2887 Q1000056 Q456 Q679224 Q168648 Q485176 Q3616 Q169064 Q613813 Q1533 Q3042 Q1953 Q209988 Q240489 Q170525 Q207309 Q16666
(c(Q515),P190,c(Q515))
action greater
action find_tuple_counts
relation P190
type Q515
type Q515
action count
action filter_type
action find
entity Q854940
relation P190
type Q515
[ANSWERS] are twin city of greater number of cities than Dabas
[{'concept': 'Q515'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?z ) WHERE { ?i property:P190 ?b . ?i rdf:type ontology:Q515 . ?b rdf:type ontology:Q515 } GROUP BY ?i } . FILTER ( ?z > ?g ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { resource:Q854940 property:P190 ?v . ?v rdf:type ontology:Q515 } } }
Ulaanbaatar Tunis Nairobi Tianjin Onomichi Băile Tușnad Makó Addis Ababa Omaha Incheon Zhenjiang Nagykanizsa Pretoria Surabaya Ōda Marseille Busan Tirana Ludwigshafen Kyiv Fukuoka Frankfurt Șimleu Silvaniei Haiphong Buenos Aires Oakland Manila Harkány Zibo Darmstadt Abu Dhabi Seoul Kinshasa Covasna Freiberg Kota Kinabalu Miami Doha Siret Gaborone Bucharest Kamakura Brasília Antananarivo Baraolt Hódmezővásárhely Wenzhou Brussels Hajdúdorog Braunschweig Sânnicolau Mare Qiqihar Iquique Riga Leipzig Valea lui Mihai Miercurea Nirajului Cegléd Fuzhou Sovata Sümeg Makati Augsburg Sarajevo Aveiro Orosháza Medan Szarvas Chongqing Naga Cristuru Secuiesc Santa Rosa Suzhou Zhuhai Borsec Veszprém Baja Daejeon Santiago Sušice Lyon Hajdúböszörmény Sopron Pasadena Tehran Sângeorgiu de Pădure Kőszeg Caracas Offenbach am Main Yerevan Gödöllő Higashimurayama Agadir Tokushima Nanjing
Buenos Aires, Riga and Kyiv are twin city of greater number of cities than Dabas
Buenos Aires Riga Kyiv
action greater
action find_tuple_counts
relation sister city
type city
type city
action count
action filter_type
action find
entity Dabas
relation sister city
type city
[{'concept': 'city'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?z ) WHERE { ?i property:sister_city ?b . ?i rdf:type ontology:city . ?b rdf:type ontology:city } GROUP BY ?i } . FILTER ( ?z > ?g ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { resource:Dabas property:sister_city ?v . ?v rdf:type ontology:city } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5503451 Q72467
P27 P17
Q1048835
USER
Which political territories are Thomas Greiss a civilian of or are Frida Hole present in ?
OR((Q72467,P27,c(Q1048835)), (Q5503451,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q72467
relation P27
action find
entity Q5503451
relation P17
type Q1048835
{'OR': [['Q72467', 'P27', {'concept': 'Q1048835'}], ['Q5503451', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q72467 property:P27 ?f } UNION { resource:Q5503451 property:P17 ?f } } . ?f rdf:type ontology:Q1048835 }
Frida Hole Thomas Greiss
action filter_type
action union
action find
entity Thomas Greiss
relation country of citizenship
action find
entity Frida Hole
relation country
type political territorial entity
{'OR': [['Thomas Greiss', 'country of citizenship', {'concept': 'political territorial entity'}], ['Frida Hole', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Thomas_Greiss property:country_of_citizenship ?f } UNION { resource:Frida_Hole property:country ?f } } . ?f rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q35086
SYSTEM
Germany, South Georgia and the South Sandwich Islands
Q183 Q35086
OR((Q72467,P27,c(Q1048835)), (Q5503451,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q72467
relation P27
action find
entity Q5503451
relation P17
type Q1048835
[ANSWERS] are Thomas Greiss a civilian of or are Frida Hole present in
{'OR': [['Q72467', 'P27', {'concept': 'Q1048835'}], ['Q5503451', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q72467 property:P27 ?f } UNION { resource:Q5503451 property:P17 ?f } } . ?f rdf:type ontology:Q1048835 }
Germany South Georgia and the South Sandwich Islands
Germany and South Georgia and the South Sandwich Islands are Thomas Greiss a civilian of or are Frida Hole present in
Germany South Georgia and the South Sandwich Islands
action filter_type
action union
action find
entity Thomas Greiss
relation country of citizenship
action find
entity Frida Hole
relation country
type political territorial entity
{'OR': [['Thomas Greiss', 'country of citizenship', {'concept': 'political territorial entity'}], ['Frida Hole', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Thomas_Greiss property:country_of_citizenship ?f } UNION { resource:Frida_Hole property:country ?f } } . ?f rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q2835851 Q1899
P19 P190
Q515
USER
Which cities are twin towns of Kyiv and were José Mariano Astigueta born at ?
AND((Q1899,P190,c(Q515)), (Q2835851,P19,c(Q515)))
action filter_type
action intersection
action find
entity Q1899
relation P190
action find
entity Q2835851
relation P19
type Q515
{'AND': [['Q1899', 'P190', {'concept': 'Q515'}], ['Q2835851', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?d WHERE { resource:Q1899 property:P190 ?d . resource:Q2835851 property:P19 ?d . ?d rdf:type ontology:Q515 }
José Mariano Astigueta Kyiv
action filter_type
action intersection
action find
entity Kyiv
relation sister city
action find
entity José Mariano Astigueta
relation place of birth
type city
{'AND': [['Kyiv', 'sister city', {'concept': 'city'}], ['José Mariano Astigueta', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?d WHERE { resource:Kyiv property:sister_city ?d . resource:José_Mariano_Astigueta property:place_of_birth ?d . ?d rdf:type ontology:city }
[]
city
Q1486
SYSTEM
Buenos Aires
Q1486
AND((Q1899,P190,c(Q515)), (Q2835851,P19,c(Q515)))
action filter_type
action intersection
action find
entity Q1899
relation P190
action find
entity Q2835851
relation P19
type Q515
[ANSWER] is twin towns of Kyiv and were José Mariano Astigueta born at
{'AND': [['Q1899', 'P190', {'concept': 'Q515'}], ['Q2835851', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?d WHERE { resource:Q1899 property:P190 ?d . resource:Q2835851 property:P19 ?d . ?d rdf:type ontology:Q515 }
Buenos Aires
Buenos Aires is twin towns of Kyiv and were José Mariano Astigueta born at
Buenos Aires
action filter_type
action intersection
action find
entity Kyiv
relation sister city
action find
entity José Mariano Astigueta
relation place of birth
type city
{'AND': [['Kyiv', 'sister city', {'concept': 'city'}], ['José Mariano Astigueta', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?d WHERE { resource:Kyiv property:sister_city ?d . resource:José_Mariano_Astigueta property:place_of_birth ?d . ?d rdf:type ontology:city }
[]