Simple Question (Direct)
Simple Question
Q1248500
P47
Q1048835
USER
Who share the border with Porrera ?
(Q1248500,P47,c(Q1048835))
action filter_type
action find
entity Q1248500
relation P47
type Q1048835
['Q1248500', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { resource:Q1248500 property:P47 ?f . ?f rdf:type ontology:Q1048835 }
Porrera
action filter_type
action find
entity Porrera
relation shares border with
type political territorial entity
['Porrera', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Porrera property:shares_border_with ?f . ?f rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q771036 Q995601 Q1233450
SYSTEM
Alforja, Cornudella de Montsant, Pradell de la Teixeta
Q995601 Q1233450 Q1233563 Q549598 Q771036 Q537604 Q745357
(Q1248500,P47,c(Q1048835))
action filter_type
action find
entity Q1248500
relation P47
type Q1048835
[ANSWERS] share the border with Porrera
['Q1248500', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { resource:Q1248500 property:P47 ?f . ?f rdf:type ontology:Q1048835 }
Cornudella de Montsant Pradell de la Teixeta Gratallops Poboleda Alforja Falset, Tarragona Torroja del Priorat
Alforja, Cornudella de Montsant and Pradell de la Teixeta share the border with Porrera
Alforja Cornudella de Montsant Pradell de la Teixeta
action filter_type
action find
entity Porrera
relation shares border with
type political territorial entity
['Porrera', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Porrera property:shares_border_with ?f . ?f rdf:type ontology:political_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q771036
P6
Q502895
USER
Which person is that political territory the head of goverment of ?
(Q771036,P6,c(Q502895))
action filter_type
action find
entity Q771036
relation P6
type Q502895
['Q771036', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q771036 property:P6 ?o . ?o rdf:type ontology:Q502895 }
Alforja
action filter_type
action find
entity Alforja
relation head of government
type common name
['Alforja', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Alforja property:head_of_government ?o . ?o rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q771036
SYSTEM
Did you mean Alforja ?
Q771036 Q995601 Q1233450
(Q771036,P6,c(Q502895)) (Q995601,P6,c(Q502895)) (Q1233450,P6,c(Q502895))
[ANSWER]
['Q771036', 'P6', {'concept': 'Q502895'}] ['Q995601', 'P6', {'concept': 'Q502895'}] ['Q1233450', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q771036 property:P6 ?o . ?o rdf:type ontology:Q502895 }
Alforja Cornudella de Montsant Pradell de la Teixeta
Did you mean Alforja ?
Alforja
['Alforja', 'head of government', {'concept': 'common name'}] ['Cornudella de Montsant', 'head of government', {'concept': 'common name'}] ['Pradell de la Teixeta', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Alforja property:head_of_government ?o . ?o rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q771036,P6,c(Q502895))
['Q771036', 'P6', {'concept': 'Q502895'}]
['Alforja', 'head of government', {'concept': 'common name'}]
[]
Q14121312
SYSTEM
Joan Josep García Rodríguez
Q14121312
(Q771036,P6,c(Q502895))
action filter_type
action find
entity Q771036
relation P6
type Q502895
[ANSWER] is that political territory the head of goverment of
['Q771036', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q771036 property:P6 ?o . ?o rdf:type ontology:Q502895 }
Joan Josep García Rodríguez
Joan Josep García Rodríguez is that political territory the head of goverment of
Joan Josep García Rodríguez
action filter_type
action find
entity Alforja
relation head of government
type common name
['Alforja', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Alforja property:head_of_government ?o . ?o rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P17
Q1048835 Q223557 Q914262
USER
How many political territories are atleast 63 physical objects and administrative territory of Swedens situated in ?
(c(Q223557)|c(Q914262),P17,c(Q1048835))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q223557
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q914262
value 63
[[{'concept': 'Q223557'}, {'concept': 'Q914262'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) ?x WHERE { ?o rdf:type ?a . VALUES ( ?a ) { ( ontology:Q223557 ) ( ontology:Q914262 ) } } GROUP BY ?x } . FILTER ( ?w >= 63 ) }
action count
action atleast
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type physical object
action find_reverse_tuple_counts
relation country
type political territorial entity
type administrative territorial entity of Sweden
value 63
[[{'concept': 'physical object'}, {'concept': 'administrative territorial entity of Sweden'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) ?x WHERE { ?o rdf:type ?a . VALUES ( ?a ) { ( ontology:physical_object ) ( ontology:administrative_territorial_entity_of_Sweden ) } } GROUP BY ?x } . FILTER ( ?w >= 63 ) }
[]
political territorial entity physical object administrative territorial entity of Sweden
SYSTEM
3
Q664 Q16 Q408
(c(Q223557)|c(Q914262),P17,c(Q1048835))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q223557
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q914262
value 63
[ANSWER]
[[{'concept': 'Q223557'}, {'concept': 'Q914262'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) ?x WHERE { ?o rdf:type ?a . VALUES ( ?a ) { ( ontology:Q223557 ) ( ontology:Q914262 ) } } GROUP BY ?x } . FILTER ( ?w >= 63 ) }
New Zealand Canada Australia
3
action count
action atleast
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type physical object
action find_reverse_tuple_counts
relation country
type political territorial entity
type administrative territorial entity of Sweden
value 63
[[{'concept': 'physical object'}, {'concept': 'administrative territorial entity of Sweden'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) ?x WHERE { ?o rdf:type ?a . VALUES ( ?a ) { ( ontology:physical_object ) ( ontology:administrative_territorial_entity_of_Sweden ) } } GROUP BY ?x } . FILTER ( ?w >= 63 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q6337
P1376
Q1048835 Q515 Q20667921
USER
How many political territories have more number of cities and french administrative divisions as their capital than Vogtlandkreis ?
(c(Q515)|c(Q20667921),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 Q20667921
action count
action filter_multi_types
action find_reverse
entity Q6337
relation P1376
type Q515
type Q20667921
[[{'concept': 'Q515'}, {'concept': 'Q20667921'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?z ) WHERE { VALUES ( ?c ) { ( ontology:Q515 ) ( ontology:Q20667921 ) } . ?x rdf:type ?c } GROUP BY ?g } . FILTER ( ?z > ?w ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { ?m property:P1376 resource:Q6337 . { ?m rdf:type ?i . VALUES ( ?i ) { ( ontology:Q515 ) ( ontology:Q20667921 ) } } } } }
Vogtlandkreis
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 type of french administrative division
action count
action filter_multi_types
action find_reverse
entity Vogtlandkreis
relation capital of
type city
type type of french administrative division
[[{'concept': 'city'}, {'concept': 'type of french administrative division'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?z ) WHERE { VALUES ( ?c ) { ( ontology:city ) ( ontology:type_of_french_administrative_division ) } . ?x rdf:type ?c } GROUP BY ?g } . FILTER ( ?z > ?w ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { ?m property:capital_of resource:Vogtlandkreis . { ?m rdf:type ?i . VALUES ( ?i ) { ( ontology:city ) ( ontology:type_of_french_administrative_division ) } } } } }
[]
political territorial entity city type of french administrative division
SYSTEM
121
Q13881 Q13882 Q13884 Q13889 Q785 Q13726 Q2051 Q3891 Q3899 Q2175 Q2271 Q48060 Q13900 Q170390 Q1122980 Q8170 Q168651 Q3741 Q2223 Q22880 Q13786 Q13785 Q13869 Q13868 Q13865 Q13863 Q13862 Q10547 Q2485101 Q1890 Q664 Q12741 Q6339 Q5082 Q5065 Q5067 Q5061 Q5062 Q5068 Q13737 Q7932 Q2140 Q13827 Q13826 Q13825 Q34617 Q13829 Q953068 Q170036 Q9648 Q3125978 Q13857 Q757 Q13772 Q642314 Q6301 Q7890 Q3916 Q13794 Q13791 Q13792 Q13813 Q48079 Q5093 Q5095 Q671742 Q5075 Q193619 Q13744 Q48094 Q192697 Q2772 Q13874 Q7928 Q188373 Q48046 Q2101298 Q1823 Q13844 Q13847 Q13843 Q2594990 Q1232887 Q8195 Q2110 Q48072 Q3586 Q13892 Q13891 Q13899 Q3906 Q778266 Q1866 Q13809 Q13860 Q13806 Q240441 Q24174 Q10440 Q49655 Q190930 Q13753 Q13752 Q13755 Q13759 Q8167 Q48089 Q7916 Q7912 Q3540 Q10526 Q13870 Q13872 Q3724 Q13876 Q48057 Q6328 Q10557 Q10555 Q2902 Q10559
(c(Q515)|c(Q20667921),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 Q20667921
action count
action filter_multi_types
action find_reverse
entity Q6337
relation P1376
type Q515
type Q20667921
[ANSWER]
[[{'concept': 'Q515'}, {'concept': 'Q20667921'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?z ) WHERE { VALUES ( ?c ) { ( ontology:Q515 ) ( ontology:Q20667921 ) } . ?x rdf:type ?c } GROUP BY ?g } . FILTER ( ?z > ?w ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { ?m property:P1376 resource:Q6337 . { ?m rdf:type ?i . VALUES ( ?i ) { ( ontology:Q515 ) ( ontology:Q20667921 ) } } } } }
Sorsogon South Cotabato Southern Leyte Surigao del Norte Jersey Albay Jambi Province Kalimantan Tengah Kalimantan Timur Riau Province South Sumatra Gera District Zamboanga del Sur County of Oldenburg Comtat Venaissin Tübingen Landgraviate of Hesse-Kassel Special Region of Yogyakarta Kepulauan Riau Electoral Palatinate Cebu Cavite Palawan Oriental Mindoro Nueva Ecija Negros Oriental Negros Occidental Lower Franconia County of Chiny Bengkulu Province New Zealand Ilocos Sur Erzgebirgskreis West Sulawesi Central Sulawesi Province Gorontalo Province East Nusa Tenggara Province West Nusa Tenggara North Sulawesi Province Basilan Darmstadt Government Region North Sumatra Province Kalinga Isabela Iloilo Saint Pierre and Miquelon La Union South-West Africa Kiev Oblast Falkland Islands Bali Misamis Occidental Saint Vincent and the Grenadines Capiz County of Burgundy Nordsachsen Kassel Kalimantan Barat Davao del Sur Cotabato Davao del Norte Ilocos Norte 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 South Bohemia Region Cottbus Tandil Aceh Leyte Masbate Lanao del Sur Dominion of New Zealand County of Savoy Breisgau-Hochschwarzwald Lampung Province Karl-Marx-Stadt District East Java Tarlac Surigao del Sur Zamboanga del Norte Kalimantan Selatan County of Artois Bangka–Belitung Islands Eastern Samar Misamis Oriental Davao Oriental General Alvarado Partido Dresden Government Region Coburg Schellenberg Vysočina Region Bukidnon Bohol Bulacan Cagayan Freiburg Government Region Neubrandenburg District Darmstadt-Dieburg Offenbach Banten Province Rosenheim Pampanga Quezon West Java Province Samar Frankfurt (Oder) Mittelsachsen Swabia Upper Palatinate Mecklenburgische Seenplatte District Lower Bavaria
121
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 type of french administrative division
action count
action filter_multi_types
action find_reverse
entity Vogtlandkreis
relation capital of
type city
type type of french administrative division
[[{'concept': 'city'}, {'concept': 'type of french administrative division'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?z ) WHERE { VALUES ( ?c ) { ( ontology:city ) ( ontology:type_of_french_administrative_division ) } . ?x rdf:type ?c } GROUP BY ?g } . FILTER ( ?z > ?w ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { ?m property:capital_of resource:Vogtlandkreis . { ?m rdf:type ?i . VALUES ( ?i ) { ( ontology:city ) ( ontology:type_of_french_administrative_division ) } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q769
P1376
Q1048835 Q515 Q20667921
USER
And also tell me about Grenada?
(c(Q515)|c(Q20667921),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 Q20667921
action count
action filter_multi_types
action find_reverse
entity Q769
relation P1376
type Q515
type Q20667921
[[{'concept': 'Q515'}, {'concept': 'Q20667921'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) ?d WHERE { ?h rdf:type ?u . VALUES ( ?u ) { ( ontology:Q515 ) ( ontology:Q20667921 ) } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) WHERE { ?i property:P1376 resource:Q769 . { { ?i rdf:type ontology:Q515 } UNION { ?i rdf:type ontology:Q20667921 } } } } . FILTER ( ?e > ?g ) }
Grenada
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 type of french administrative division
action count
action filter_multi_types
action find_reverse
entity Grenada
relation capital of
type city
type type of french administrative division
[[{'concept': 'city'}, {'concept': 'type of french administrative division'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) ?d WHERE { ?h rdf:type ?u . VALUES ( ?u ) { ( ontology:city ) ( ontology:type_of_french_administrative_division ) } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) WHERE { ?i property:capital_of resource:Grenada . { { ?i rdf:type ontology:city } UNION { ?i rdf:type ontology:type_of_french_administrative_division } } } } . FILTER ( ?e > ?g ) }
[]
political territorial entity city type of french administrative division
SYSTEM
121
Q13881 Q13882 Q13884 Q13889 Q785 Q13726 Q2051 Q3891 Q3899 Q2175 Q2271 Q48060 Q13900 Q170390 Q1122980 Q8170 Q168651 Q3741 Q2223 Q22880 Q13786 Q13785 Q13869 Q13868 Q13865 Q13863 Q13862 Q10547 Q2485101 Q1890 Q664 Q12741 Q6339 Q5082 Q5065 Q5067 Q5061 Q5062 Q5068 Q13737 Q7932 Q2140 Q13827 Q13826 Q13825 Q34617 Q13829 Q953068 Q170036 Q9648 Q3125978 Q13857 Q757 Q13772 Q642314 Q6301 Q7890 Q3916 Q13794 Q13791 Q13792 Q13813 Q48079 Q5093 Q5095 Q671742 Q5075 Q193619 Q13744 Q48094 Q192697 Q2772 Q13874 Q7928 Q188373 Q48046 Q2101298 Q1823 Q13844 Q13847 Q13843 Q2594990 Q1232887 Q8195 Q2110 Q48072 Q3586 Q13892 Q13891 Q13899 Q3906 Q778266 Q1866 Q13809 Q13860 Q13806 Q240441 Q24174 Q10440 Q49655 Q190930 Q13753 Q13752 Q13755 Q13759 Q8167 Q48089 Q7916 Q7912 Q3540 Q10526 Q13870 Q13872 Q3724 Q13876 Q48057 Q6328 Q10557 Q10555 Q2902 Q10559
(c(Q515)|c(Q20667921),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 Q20667921
action count
action filter_multi_types
action find_reverse
entity Q769
relation P1376
type Q515
type Q20667921
[ANSWER]
[[{'concept': 'Q515'}, {'concept': 'Q20667921'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) ?d WHERE { ?h rdf:type ?u . VALUES ( ?u ) { ( ontology:Q515 ) ( ontology:Q20667921 ) } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) WHERE { ?i property:P1376 resource:Q769 . { { ?i rdf:type ontology:Q515 } UNION { ?i rdf:type ontology:Q20667921 } } } } . FILTER ( ?e > ?g ) }
Sorsogon South Cotabato Southern Leyte Surigao del Norte Jersey Albay Jambi Province Kalimantan Tengah Kalimantan Timur Riau Province South Sumatra Gera District Zamboanga del Sur County of Oldenburg Comtat Venaissin Tübingen Landgraviate of Hesse-Kassel Special Region of Yogyakarta Kepulauan Riau Electoral Palatinate Cebu Cavite Palawan Oriental Mindoro Nueva Ecija Negros Oriental Negros Occidental Lower Franconia County of Chiny Bengkulu Province New Zealand Ilocos Sur Erzgebirgskreis West Sulawesi Central Sulawesi Province Gorontalo Province East Nusa Tenggara Province West Nusa Tenggara North Sulawesi Province Basilan Darmstadt Government Region North Sumatra Province Kalinga Isabela Iloilo Saint Pierre and Miquelon La Union South-West Africa Kiev Oblast Falkland Islands Bali Misamis Occidental Saint Vincent and the Grenadines Capiz County of Burgundy Nordsachsen Kassel Kalimantan Barat Davao del Sur Cotabato Davao del Norte Ilocos Norte 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 South Bohemia Region Cottbus Tandil Aceh Leyte Masbate Lanao del Sur Dominion of New Zealand County of Savoy Breisgau-Hochschwarzwald Lampung Province Karl-Marx-Stadt District East Java Tarlac Surigao del Sur Zamboanga del Norte Kalimantan Selatan County of Artois Bangka–Belitung Islands Eastern Samar Misamis Oriental Davao Oriental General Alvarado Partido Dresden Government Region Coburg Schellenberg Vysočina Region Bukidnon Bohol Bulacan Cagayan Freiburg Government Region Neubrandenburg District Darmstadt-Dieburg Offenbach Banten Province Rosenheim Pampanga Quezon West Java Province Samar Frankfurt (Oder) Mittelsachsen Swabia Upper Palatinate Mecklenburgische Seenplatte District Lower Bavaria
121
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 type of french administrative division
action count
action filter_multi_types
action find_reverse
entity Grenada
relation capital of
type city
type type of french administrative division
[[{'concept': 'city'}, {'concept': 'type of french administrative division'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) ?d WHERE { ?h rdf:type ?u . VALUES ( ?u ) { ( ontology:city ) ( ontology:type_of_french_administrative_division ) } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) WHERE { ?i property:capital_of resource:Grenada . { { ?i rdf:type ontology:city } UNION { ?i rdf:type ontology:type_of_french_administrative_division } } } } . FILTER ( ?e > ?g ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P127
Q1048835 Q7743 Q483110
USER
Which political territories owned min number of homes or stadia ?
(c(Q7743)|c(Q483110),P127,c(Q1048835))
action argmin
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q7743
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q483110
[[{'concept': 'Q7743'}, {'concept': 'Q483110'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?m ) AS ?q ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) ?v WHERE { { ?h property:P127 ?v . ?v rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q7743 } UNION { ?h property:P127 ?v . ?h rdf:type ontology:Q483110 . ?v rdf:type ontology:Q1048835 } } GROUP BY ?v } } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) ?x WHERE { { ?f property:P127 ?x . ?f rdf:type ontology:Q7743 . ?x rdf:type ontology:Q1048835 } UNION { ?x rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q483110 . ?f property:P127 ?x } } GROUP BY ?x } . FILTER ( ?g = ?q ) }
action argmin
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type home
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type stadium
[[{'concept': 'home'}, {'concept': 'stadium'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?m ) AS ?q ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) ?v WHERE { { ?h property:owned_by ?v . ?v rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:home } UNION { ?h property:owned_by ?v . ?h rdf:type ontology:stadium . ?v rdf:type ontology:political_territorial_entity } } GROUP BY ?v } } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) ?x WHERE { { ?f property:owned_by ?x . ?f rdf:type ontology:home . ?x rdf:type ontology:political_territorial_entity } UNION { ?x rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:stadium . ?f property:owned_by ?x } } GROUP BY ?x } . FILTER ( ?g = ?q ) }
[]
political territorial entity home stadium
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q192536 Q170322 Q1648590 Q3741 Q20937 Q2321093 Q5691 Q188399 Q183 Q490638 Q6040 Q126514 Q211091 Q6053 Q133083 Q74881 Q8543 Q6041 Q2379199 Q6139 Q8178 Q7379734 Q1823 Q8551 Q13786 Q35 Q191091 Q2947 Q13862 Q1135166 Q46070 Q211106 Q202174 Q54902 Q192697 Q188373 Q190930 Q192702 Q2175 Q849584 Q6142 Q909707 Q234 Q100166 Q17557 Q231 Q40 Q9331 Q6047 Q6045 Q9337 Q8182 Q23635 Q408 Q193307 Q16
(c(Q7743)|c(Q483110),P127,c(Q1048835))
action argmin
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q7743
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q483110
[ANSWERS] owned min number of homes or stadia
[[{'concept': 'Q7743'}, {'concept': 'Q483110'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?m ) AS ?q ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) ?v WHERE { { ?h property:P127 ?v . ?v rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q7743 } UNION { ?h property:P127 ?v . ?h rdf:type ontology:Q483110 . ?v rdf:type ontology:Q1048835 } } GROUP BY ?v } } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) ?x WHERE { { ?f property:P127 ?x . ?f rdf:type ontology:Q7743 . ?x rdf:type ontology:Q1048835 } UNION { ?x rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q483110 . ?f property:P127 ?x } } GROUP BY ?x } . FILTER ( ?g = ?q ) }
Zlín Region Qingdao Manises Special Region of Yogyakarta Gyeonggi Province Chorrillos South Karelia Central Bohemian Region Germany Almendralejo Goslar Dumfries and Galloway Renfrewshire Gifhorn Gauteng Dalian Germersheim Wolfenbüttel politics of Edinburgh Havelland Karlsruhe Aachen Aceh Südliche Weinstraße Cebu Denmark Karlovy Vary Region Dithmarschen Negros Occidental Greater London Authority Plzeň Region Moray Argyll and Bute Fuenlabrada South Moravian Region South Bohemia Region Vysočina Region Ústí nad Labem Region Riau Province Jaraguá do Sul Potsdam-Mittelmark Sestao Flemish Region Orkney Islands California Republic Walloon Region Austria Flemish Community Helmstedt Peine Flemish Region Rastatt Bermuda Australia Olomouc Region Canada
Germany, Australia and Denmark owned min number of homes or stadia
Germany Australia Denmark
action argmin
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type home
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type stadium
[[{'concept': 'home'}, {'concept': 'stadium'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?m ) AS ?q ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) ?v WHERE { { ?h property:owned_by ?v . ?v rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:home } UNION { ?h property:owned_by ?v . ?h rdf:type ontology:stadium . ?v rdf:type ontology:political_territorial_entity } } GROUP BY ?v } } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) ?x WHERE { { ?f property:owned_by ?x . ?f rdf:type ontology:home . ?x rdf:type ontology:political_territorial_entity } UNION { ?x rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:stadium . ?f property:owned_by ?x } } GROUP BY ?x } . FILTER ( ?g = ?q ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q29 Q771036
P47 P17
Q1048835
USER
Which political territories do Alforja share a border with and are located in Spain ?
AND((c(Q1048835),P47,Q771036), (c(Q1048835),P17,Q29))
action filter_type
action intersection
action find_reverse
entity Q771036
relation P47
action find_reverse
entity Q29
relation P17
type Q1048835
{'AND': [[{'concept': 'Q1048835'}, 'P47', 'Q771036'], [{'concept': 'Q1048835'}, 'P17', 'Q29']]}
SELECT DISTINCT ?j WHERE { ?j property:P17 resource:Q29 . ?j property:P47 resource:Q771036 . ?j rdf:type ontology:Q1048835 }
Spain Alforja
action filter_type
action intersection
action find_reverse
entity Alforja
relation shares border with
action find_reverse
entity Spain
relation country
type political territorial entity
{'AND': [[{'concept': 'political territorial entity'}, 'shares border with', 'Alforja'], [{'concept': 'political territorial entity'}, 'country', 'Spain']]}
SELECT DISTINCT ?j WHERE { ?j property:country resource:Spain . ?j property:shares_border_with resource:Alforja . ?j rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1233450 Q537265 Q1233410 Q1232065 Q742282 Q1230160 Q1248500 Q985600 Q534007
SYSTEM
Pradell de la Teixeta, Duesaigües, L'Aleixar, Arbolí, Riudecols, Les Borges del Camp, Porrera, Vilaplana, Maspujols
Q1233450 Q537265 Q1233410 Q1232065 Q742282 Q1230160 Q1248500 Q985600 Q534007
AND((c(Q1048835),P47,Q771036), (c(Q1048835),P17,Q29))
action filter_type
action intersection
action find_reverse
entity Q771036
relation P47
action find_reverse
entity Q29
relation P17
type Q1048835
[ANSWERS] Alforja share a border with
{'AND': [[{'concept': 'Q1048835'}, 'P47', 'Q771036'], [{'concept': 'Q1048835'}, 'P17', 'Q29']]}
SELECT DISTINCT ?j WHERE { ?j property:P17 resource:Q29 . ?j property:P47 resource:Q771036 . ?j rdf:type ontology:Q1048835 }
Pradell de la Teixeta Duesaigües L'Aleixar Arbolí Riudecols Les Borges del Camp Porrera Vilaplana Maspujols
Pradell de la Teixeta, Duesaigües, L'Aleixar, Arbolí, Riudecols, Les Borges del Camp, Porrera, Vilaplana and Maspujols Alforja share a border with
Pradell de la Teixeta Duesaigües L'Aleixar Arbolí Riudecols Les Borges del Camp Porrera Vilaplana Maspujols
action filter_type
action intersection
action find_reverse
entity Alforja
relation shares border with
action find_reverse
entity Spain
relation country
type political territorial entity
{'AND': [[{'concept': 'political territorial entity'}, 'shares border with', 'Alforja'], [{'concept': 'political territorial entity'}, 'country', 'Spain']]}
SELECT DISTINCT ?j WHERE { ?j property:country resource:Spain . ?j property:shares_border_with resource:Alforja . ?j rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q790
P530
Q15617994 Q1048835
USER
Which administrative territories have diplomatic relationships with around the same number of political territories as Haiti ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q790
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?t ) WHERE { ?x property:P530 ?s . ?s rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 } GROUP BY ?s } . FILTER ( ?t = ?r ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { ?l rdf:type ontology:Q15617994 . resource:Q790 property:P530 ?l } } }
Haiti
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Haiti
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?t ) WHERE { ?x property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?s } . FILTER ( ?t = ?r ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Haiti property:diplomatic_relation ?l } } }
[]
designation for an administrative territorial entity political territorial entity
Q805 Q858 Q842
SYSTEM
Yemen, Syria, Oman
Q805 Q784 Q710 Q399 Q398 Q790 Q1013 Q236 Q842 Q970 Q874 Q858
(c(Q1048835),P530,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q790
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with around the same number of political territories as Haiti
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?t ) WHERE { ?x property:P530 ?s . ?s rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 } GROUP BY ?s } . FILTER ( ?t = ?r ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { ?l rdf:type ontology:Q15617994 . resource:Q790 property:P530 ?l } } }
Yemen Dominica Kiribati Armenia Bahrain Haiti Lesotho Montenegro Oman Comoros Turkmenistan Syria
Yemen, Syria and Oman have diplomatic relationships with around the same number of political territories as Haiti
Yemen Syria Oman
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Haiti
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?t ) WHERE { ?x property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?s } . FILTER ( ?t = ?r ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Haiti property:diplomatic_relation ?l } } }
[]