Simple Question (Direct)
Simple Question
Q68316
P21
Q290
USER
What is the sex of Friederike Caroline Neuber ?
(Q68316,P21,c(Q290))
action filter_type
action find
entity Q68316
relation P21
type Q290
['Q68316', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q68316 property:P21 ?l . ?l rdf:type ontology:Q290 }
Friederike Caroline Neuber
action filter_type
action find
entity Friederike Caroline Neuber
relation gender
type sex
['Friederike Caroline Neuber', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Friederike_Caroline_Neuber property:gender ?l . ?l rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q68316,P21,c(Q290))
action filter_type
action find
entity Q68316
relation P21
type Q290
The sex of Friederike Caroline Neuber is the [ANSWER]
['Q68316', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q68316 property:P21 ?l . ?l rdf:type ontology:Q290 }
female
The sex of Friederike Caroline Neuber is the female
female
action filter_type
action find
entity Friederike Caroline Neuber
relation gender
type sex
['Friederike Caroline Neuber', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Friederike_Caroline_Neuber property:gender ?l . ?l rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q68316
P20
Q486972
USER
Where did Friederike Caroline Neuber die ?
(Q68316,P20,c(Q486972))
action filter_type
action find
entity Q68316
relation P20
type Q486972
['Q68316', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?s WHERE { resource:Q68316 property:P20 ?s . ?s rdf:type ontology:Q486972 }
Friederike Caroline Neuber
action filter_type
action find
entity Friederike Caroline Neuber
relation place of death
type human settlement
['Friederike Caroline Neuber', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?s WHERE { resource:Friederike_Caroline_Neuber property:place_of_death ?s . ?s rdf:type ontology:human_settlement }
[]
human settlement
Q8933
SYSTEM
Laubegast
Q8933
(Q68316,P20,c(Q486972))
action filter_type
action find
entity Q68316
relation P20
type Q486972
Friederike Caroline Neuber died in [ANSWER]
['Q68316', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?s WHERE { resource:Q68316 property:P20 ?s . ?s rdf:type ontology:Q486972 }
Laubegast
Friederike Caroline Neuber died in Laubegast
Laubegast
action filter_type
action find
entity Friederike Caroline Neuber
relation place of death
type human settlement
['Friederike Caroline Neuber', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?s WHERE { resource:Friederike_Caroline_Neuber property:place_of_death ?s . ?s rdf:type ontology:human_settlement }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2989492 Q8933
P17
Q1048835
USER
Which political territories do Laubegast or Vejgaard belong to ?
OR((Q8933,P17,c(Q1048835)), (Q2989492,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q8933
relation P17
action find
entity Q2989492
relation P17
type Q1048835
{'OR': [['Q8933', 'P17', {'concept': 'Q1048835'}], ['Q2989492', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?c ) { ( resource:Q8933 ) ( resource:Q2989492 ) } . ?c property:P17 ?k } . ?k rdf:type ontology:Q1048835 }
Vejgaard Laubegast
action filter_type
action union
action find
entity Laubegast
relation country
action find
entity Vejgaard
relation country
type political territorial entity
{'OR': [['Laubegast', 'country', {'concept': 'political territorial entity'}], ['Vejgaard', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?c ) { ( resource:Laubegast ) ( resource:Vejgaard ) } . ?c property:country ?k } . ?k rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q35
SYSTEM
Germany, Denmark
Q183 Q35
OR((Q8933,P17,c(Q1048835)), (Q2989492,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q8933
relation P17
action find
entity Q2989492
relation P17
type Q1048835
Laubegast or Vejgaard belong to [ANSWERS]
{'OR': [['Q8933', 'P17', {'concept': 'Q1048835'}], ['Q2989492', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?c ) { ( resource:Q8933 ) ( resource:Q2989492 ) } . ?c property:P17 ?k } . ?k rdf:type ontology:Q1048835 }
Germany Denmark
Laubegast or Vejgaard belong to Germany and Denmark
Germany Denmark
action filter_type
action union
action find
entity Laubegast
relation country
action find
entity Vejgaard
relation country
type political territorial entity
{'OR': [['Laubegast', 'country', {'concept': 'political territorial entity'}], ['Vejgaard', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?c ) { ( resource:Laubegast ) ( resource:Vejgaard ) } . ?c property:country ?k } . ?k rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which administrative territories have diplomatic relationships with max number of political territories ?
(c(Q1048835),P530,Q953)
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q953']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?f ) { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?d ) WHERE { ?z property:P530 ?n . ?z rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q1048835 } GROUP BY ?z } } . { SELECT DISTINCT ?t ( COUNT ( ?e ) AS ?j ) WHERE { ?t property:P530 ?e . ?t rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q1048835 } GROUP BY ?t } . FILTER ( ?j = ?f ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?f ) { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?d ) WHERE { ?z property:diplomatic_relation ?n . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:political_territorial_entity } GROUP BY ?z } } . { SELECT DISTINCT ?t ( COUNT ( ?e ) AS ?j ) WHERE { ?t property:diplomatic_relation ?e . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:political_territorial_entity } GROUP BY ?t } . FILTER ( ?j = ?f ) }
[]
designation for an administrative territorial entity political territorial entity
Q38
SYSTEM
Italy
Q38
(c(Q1048835),P530,Q953)
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
[ANSWER] have diplomatic relationships with max number of political territories
[{'concept': 'Q1048835'}, 'P530', 'Q953']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?f ) { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?d ) WHERE { ?z property:P530 ?n . ?z rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q1048835 } GROUP BY ?z } } . { SELECT DISTINCT ?t ( COUNT ( ?e ) AS ?j ) WHERE { ?t property:P530 ?e . ?t rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q1048835 } GROUP BY ?t } . FILTER ( ?j = ?f ) }
Italy
Italy have diplomatic relationships with max number of political territories
Italy
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?f ) { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?d ) WHERE { ?z property:diplomatic_relation ?n . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:political_territorial_entity } GROUP BY ?z } } . { SELECT DISTINCT ?t ( COUNT ( ?e ) AS ?j ) WHERE { ?t property:diplomatic_relation ?e . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:political_territorial_entity } GROUP BY ?t } . FILTER ( ?j = ?f ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q38 Q238
P530
Q15617994
USER
Does San Marino hold diplomatic relationship with that one ?
(Q38,P530,Q238)
action is_in
entity Q238
action find
entity Q38
relation P530
['Q38', 'P530', 'Q238']
ASK WHERE { resource:Q38 property:P530 resource:Q238 }
Italy San Marino
action is_in
entity San Marino
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'San Marino']
ASK WHERE { resource:Italy property:diplomatic_relation resource:San_Marino }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q38,P530,Q238)
action is_in
entity Q238
action find
entity Q38
relation P530
[ANSWER]
['Q38', 'P530', 'Q238']
ASK WHERE { resource:Q38 property:P530 resource:Q238 }
Yes
action is_in
entity San Marino
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'San Marino']
ASK WHERE { resource:Italy property:diplomatic_relation resource:San_Marino }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P361
Q473972 Q811979 Q486972
USER
Which human settlements are a portion of min number of protected areas or architectural structures ?
(c(Q486972),P361,c(Q473972)|c(Q811979))
action argmin
action union
action find_tuple_counts
relation P361
type Q486972
type Q473972
action find_tuple_counts
relation P361
type Q486972
type Q811979
[{'concept': 'Q486972'}, 'P361', [{'concept': 'Q473972'}, {'concept': 'Q811979'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?f ) AS ?y ) WHERE { { ?x property:P361 ?f . ?x rdf:type ontology:Q486972 . ?f rdf:type ontology:Q473972 } UNION { ?x property:P361 ?f . ?x rdf:type ontology:Q486972 . ?f rdf:type ontology:Q811979 } } GROUP BY ?x } . FILTER ( ?y = ?i ) . { SELECT DISTINCT ( MIN ( ?o ) AS ?i ) { SELECT DISTINCT ?b ( COUNT ( ?j ) AS ?o ) WHERE { { ?b rdf:type ontology:Q486972 . ?j rdf:type ontology:Q473972 . ?b property:P361 ?j } UNION { ?b rdf:type ontology:Q486972 . ?j rdf:type ontology:Q811979 . ?b property:P361 ?j } } GROUP BY ?b } } }
action argmin
action union
action find_tuple_counts
relation part of
type human settlement
type protected area
action find_tuple_counts
relation part of
type human settlement
type architectural structure
[{'concept': 'human settlement'}, 'part of', [{'concept': 'protected area'}, {'concept': 'architectural structure'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?f ) AS ?y ) WHERE { { ?x property:part_of ?f . ?x rdf:type ontology:human_settlement . ?f rdf:type ontology:protected_area } UNION { ?x property:part_of ?f . ?x rdf:type ontology:human_settlement . ?f rdf:type ontology:architectural_structure } } GROUP BY ?x } . FILTER ( ?y = ?i ) . { SELECT DISTINCT ( MIN ( ?o ) AS ?i ) { SELECT DISTINCT ?b ( COUNT ( ?j ) AS ?o ) WHERE { { ?b rdf:type ontology:human_settlement . ?j rdf:type ontology:protected_area . ?b property:part_of ?j } UNION { ?b rdf:type ontology:human_settlement . ?j rdf:type ontology:architectural_structure . ?b property:part_of ?j } } GROUP BY ?b } } }
[]
protected area architectural structure human settlement
Q1055 Q1792 Q2916
SYSTEM
Hamburg, Gdańsk, Osnabrück
Q187083 Q17015330 Q10480508 Q10938668 Q20829076 Q1792 Q3930055 Q835970 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 Q1165679 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 Q649957 Q311849 Q3021127 Q522651 Q1671815 Q2900311 Q1573 Q3126518 Q478707 Q2381518 Q552523 Q1291451 Q5122339 Q1124159 Q324333 Q21282211 Q1484905 Q894219 Q1900690 Q16984072 Q129421 Q3208442 Q3661515 Q3705854 Q12346613 Q21282291 Q1019962 Q2419722 Q12039044 Q1560 Q1175 Q738570 Q502939 Q2359453 Q1055 Q1031398 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(Q473972)|c(Q811979))
action argmin
action union
action find_tuple_counts
relation P361
type Q486972
type Q473972
action find_tuple_counts
relation P361
type Q486972
type Q811979
[ANSWERS] are a portion of min number of protected areas or architectural structures
[{'concept': 'Q486972'}, 'P361', [{'concept': 'Q473972'}, {'concept': 'Q811979'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?f ) AS ?y ) WHERE { { ?x property:P361 ?f . ?x rdf:type ontology:Q486972 . ?f rdf:type ontology:Q473972 } UNION { ?x property:P361 ?f . ?x rdf:type ontology:Q486972 . ?f rdf:type ontology:Q811979 } } GROUP BY ?x } . FILTER ( ?y = ?i ) . { SELECT DISTINCT ( MIN ( ?o ) AS ?i ) { SELECT DISTINCT ?b ( COUNT ( ?j ) AS ?o ) WHERE { { ?b rdf:type ontology:Q486972 . ?j rdf:type ontology:Q473972 . ?b property:P361 ?j } UNION { ?b rdf:type ontology:Q486972 . ?j rdf:type ontology:Q811979 . ?b property:P361 ?j } } GROUP BY ?b } } }
Zeitungsviertel Neighborhoods of Minneapolis Ekeby Západní Město Savan Gdańsk Bistrik Rückschlag 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 Sunset Key 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 Alicudi Warnemünde Deep Ellum Marktbreit Winterberg Ma'alot Dafna Kleiner Grasbrook Hammarby Sjöstad Grachtengordel Südstadt Mellrichstadt Salzbrunn Cisów, Lower Silesian Voivodeship Stadtmitte 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 Campo Carlo Magno 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 portion of min number of protected areas or architectural structures
Hamburg Gdańsk Osnabrück
action argmin
action union
action find_tuple_counts
relation part of
type human settlement
type protected area
action find_tuple_counts
relation part of
type human settlement
type architectural structure
[{'concept': 'human settlement'}, 'part of', [{'concept': 'protected area'}, {'concept': 'architectural structure'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?f ) AS ?y ) WHERE { { ?x property:part_of ?f . ?x rdf:type ontology:human_settlement . ?f rdf:type ontology:protected_area } UNION { ?x property:part_of ?f . ?x rdf:type ontology:human_settlement . ?f rdf:type ontology:architectural_structure } } GROUP BY ?x } . FILTER ( ?y = ?i ) . { SELECT DISTINCT ( MIN ( ?o ) AS ?i ) { SELECT DISTINCT ?b ( COUNT ( ?j ) AS ?o ) WHERE { { ?b rdf:type ontology:human_settlement . ?j rdf:type ontology:protected_area . ?b property:part_of ?j } UNION { ?b rdf:type ontology:human_settlement . ?j rdf:type ontology:architectural_structure . ?b property:part_of ?j } } GROUP BY ?b } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q183
P47
Q1048835 Q15617994
USER
How many political territories and administrative territories share border with Germany ?
(c(Q1048835),P47,Q183) (c(Q15617994),P47,Q183)
action count
action union
action filter_type
action find_reverse
entity Q183
relation P47
type Q1048835
action filter_type
action find_reverse
entity Q183
relation P47
type Q15617994
[{'concept': 'Q1048835'}, 'P47', 'Q183'] [{'concept': 'Q15617994'}, 'P47', 'Q183']
SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { ?u rdf:type ?a . VALUES ( ?a ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } }
Germany
action count
action union
action filter_type
action find_reverse
entity Germany
relation shares border with
type political territorial entity
action filter_type
action find_reverse
entity Germany
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Germany'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Germany']
SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { ?u rdf:type ?a . VALUES ( ?a ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
4 political territories and 8 administrative territories
Q142 Q13116 Q55 Q40 Q213 Q29999 Q32 Q31 Q36 Q35 Q191091 Q39
(c(Q1048835),P47,Q183) (c(Q15617994),P47,Q183)
action count
action union
action filter_type
action find_reverse
entity Q183
relation P47
type Q1048835
action filter_type
action find_reverse
entity Q183
relation P47
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P47', 'Q183'] [{'concept': 'Q15617994'}, 'P47', 'Q183']
SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { ?u rdf:type ?a . VALUES ( ?a ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } }
France Benelux Netherlands Austria Czech Republic Kingdom of the Netherlands Luxembourg Belgium Poland Denmark Karlovy Vary Region Switzerland
4 political territories and 8 administrative territories
action count
action union
action filter_type
action find_reverse
entity Germany
relation shares border with
type political territorial entity
action filter_type
action find_reverse
entity Germany
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Germany'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Germany']
SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { ?u rdf:type ?a . VALUES ( ?a ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q183 Q7382038
P35
Q502895
USER
How many people are the heads of state of Germany or Imperial Throne ?
(Q183,P35,c(Q502895)) (Q7382038,P35,c(Q502895))
action count
action union
action filter_type
action find
entity Q183
relation P35
type Q502895
action filter_type
action find
entity Q7382038
relation P35
type Q502895
['Q183', 'P35', {'concept': 'Q502895'}] ['Q7382038', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { ?m property:P35 ?d . VALUES ( ?m ) { ( resource:Q7382038 ) ( resource:Q183 ) } }
Germany Imperial Throne
action count
action union
action filter_type
action find
entity Germany
relation head of state
type common name
action filter_type
action find
entity Imperial Throne
relation head of state
type common name
['Germany', 'head of state', {'concept': 'common name'}] ['Imperial Throne', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { ?m property:head_of_state ?d . VALUES ( ?m ) { ( resource:Imperial_Throne ) ( resource:Germany ) } }
[]
common name
SYSTEM
12
Q2569 Q2594 Q2573 Q2563 Q2571 Q2538 Q7244117 Q2551 Q2567 Q2540 Q2582 Q2542
(Q183,P35,c(Q502895)) (Q7382038,P35,c(Q502895))
action count
action union
action filter_type
action find
entity Q183
relation P35
type Q502895
action filter_type
action find
entity Q7382038
relation P35
type Q502895
[ANSWER]
['Q183', 'P35', {'concept': 'Q502895'}] ['Q7382038', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { ?m property:P35 ?d . VALUES ( ?m ) { ( resource:Q7382038 ) ( resource:Q183 ) } }
Karl Carstens Theodor Heuss Gustav Heinemann Roman Herzog Walter Scheel Joachim Gauck Prince Karl Emich of Leiningen Johannes Rau Richard von Weizsäcker Christian Wulff Heinrich Lübke Horst Köhler
12
action count
action union
action filter_type
action find
entity Germany
relation head of state
type common name
action filter_type
action find
entity Imperial Throne
relation head of state
type common name
['Germany', 'head of state', {'concept': 'common name'}] ['Imperial Throne', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { ?m property:head_of_state ?d . VALUES ( ?m ) { ( resource:Imperial_Throne ) ( resource:Germany ) } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q149790
P190
Q486972 Q20667921 Q56061
USER
How many human settlements are twin cities of more number of french administrative divisions or administrative territories than Brody, Żary County ?
(c(Q20667921)|c(Q56061),P190,c(Q486972))
action count
action greater
action union
action find_reverse_tuple_counts
relation P190
type Q486972
type Q20667921
action find_reverse_tuple_counts
relation P190
type Q486972
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q149790
relation P190
type Q20667921
type Q56061
[[{'concept': 'Q20667921'}, {'concept': 'Q56061'}], 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) ?d WHERE { { ?r property:P190 ?d . ?d rdf:type ontology:Q486972 . ?r rdf:type ontology:Q20667921 } UNION { ?r property:P190 ?d . ?d rdf:type ontology:Q486972 . ?r rdf:type ontology:Q56061 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { ?b property:P190 resource:Q149790 . { VALUES ( ?v ) { ( ontology:Q20667921 ) ( ontology:Q56061 ) } . ?b rdf:type ?v } } } . FILTER ( ?a > ?p ) }
Brody, Żary County
action count
action greater
action union
action find_reverse_tuple_counts
relation sister city
type human settlement
type type of french administrative division
action find_reverse_tuple_counts
relation sister city
type human settlement
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Brody, Żary County
relation sister city
type type of french administrative division
type administrative territorial entity
[[{'concept': 'type of french administrative division'}, {'concept': 'administrative territorial entity'}], 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) ?d WHERE { { ?r property:sister_city ?d . ?d rdf:type ontology:human_settlement . ?r rdf:type ontology:type_of_french_administrative_division } UNION { ?r property:sister_city ?d . ?d rdf:type ontology:human_settlement . ?r rdf:type ontology:administrative_territorial_entity } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { ?b property:sister_city resource:Brody,_Żary_County . { VALUES ( ?v ) { ( ontology:type_of_french_administrative_division ) ( ontology:administrative_territorial_entity ) } . ?b rdf:type ?v } } } . FILTER ( ?a > ?p ) }
[]
human settlement type of french administrative division administrative territorial entity
SYSTEM
69
Q105084 Q107094 Q583485 Q1055 Q14891 Q576636 Q139242 Q105048 Q158004 Q2916 Q104720 Q104725 Q1799 Q1792 Q41753 Q26590 Q191106 Q214215 Q47554 Q209932 Q263107 Q92212 Q24879 Q173270 Q693628 Q264201 Q3777 Q102317 Q8969 Q104712 Q171219 Q1026520 Q234184 Q52842 Q165204 Q52845 Q173121 Q386991 Q145972 Q319813 Q62868 Q61306 Q61302 Q104740 Q125293 Q31487 Q41252 Q209034 Q204271 Q106583 Q37333 Q2843 Q103892 Q200805 Q268 Q53077 Q82765 Q201516 Q82500 Q48256 Q103217 Q504849 Q81033 Q505185 Q9022 Q131266 Q104731 Q107106 Q752460
(c(Q20667921)|c(Q56061),P190,c(Q486972))
action count
action greater
action union
action find_reverse_tuple_counts
relation P190
type Q486972
type Q20667921
action find_reverse_tuple_counts
relation P190
type Q486972
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q149790
relation P190
type Q20667921
type Q56061
[ANSWER]
[[{'concept': 'Q20667921'}, {'concept': 'Q56061'}], 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) ?d WHERE { { ?r property:P190 ?d . ?d rdf:type ontology:Q486972 . ?r rdf:type ontology:Q20667921 } UNION { ?r property:P190 ?d . ?d rdf:type ontology:Q486972 . ?r rdf:type ontology:Q56061 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { ?b property:P190 resource:Q149790 . { VALUES ( ?v ) { ( ontology:Q20667921 ) ( ontology:Q56061 ) } . ?b rdf:type ?v } } } . FILTER ( ?a > ?p ) }
Gliwice Rybnik Schwaz Hamburg Suhl Huamantla Zacatecas Słupsk Piotrków Trybunalski Osnabrück Zielona Góra Płock Wrocław Gdańsk Klagenfurt Ciudad Juárez Haapsalu La Paz Toruń Biała Podlaska Judenburg Opole Bremen Veracruz Wilmersdorf Mariazell Ouagadougou Kielce Cancún Elbląg Dornbirn Juan-les-Pins Chełm Kalisz Mérida Konin Querétaro Torreón Zamość Siedlce Koszalin Guanajuato Chihuahua Radom Puebla City Kraków Bydgoszcz Toluca San Luis Potosí Bielsko-Biała Lublin Lübeck Zabrze Aguascalientes Poznań Saltillo Olsztyn Miami Beach St. Pölten Dnipro Częstochowa Ochsenfurt Monterrey Pößneck Guadalajara Krems an der Donau Gorzów Wielkopolski Jastrzębie-Zdrój Los Mochis
69
action count
action greater
action union
action find_reverse_tuple_counts
relation sister city
type human settlement
type type of french administrative division
action find_reverse_tuple_counts
relation sister city
type human settlement
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Brody, Żary County
relation sister city
type type of french administrative division
type administrative territorial entity
[[{'concept': 'type of french administrative division'}, {'concept': 'administrative territorial entity'}], 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) ?d WHERE { { ?r property:sister_city ?d . ?d rdf:type ontology:human_settlement . ?r rdf:type ontology:type_of_french_administrative_division } UNION { ?r property:sister_city ?d . ?d rdf:type ontology:human_settlement . ?r rdf:type ontology:administrative_territorial_entity } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { ?b property:sister_city resource:Brody,_Żary_County . { VALUES ( ?v ) { ( ontology:type_of_french_administrative_division ) ( ontology:administrative_territorial_entity ) } . ?b rdf:type ?v } } } . FILTER ( ?a > ?p ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q14805
P190
Q486972 Q20667921 Q56061
USER
And also tell me about Kaufbeuren?
(c(Q20667921)|c(Q56061),P190,c(Q486972))
action count
action greater
action union
action find_reverse_tuple_counts
relation P190
type Q486972
type Q20667921
action find_reverse_tuple_counts
relation P190
type Q486972
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q14805
relation P190
type Q20667921
type Q56061
[[{'concept': 'Q20667921'}, {'concept': 'Q56061'}], 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?d ) AS ?w ) WHERE { { ?s rdf:type ontology:Q486972 . ?d rdf:type ontology:Q20667921 . ?d property:P190 ?s } UNION { ?d rdf:type ontology:Q56061 . ?s rdf:type ontology:Q486972 . ?d property:P190 ?s } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { ?n property:P190 resource:Q14805 . { ?n rdf:type ?i . VALUES ( ?i ) { ( ontology:Q56061 ) ( ontology:Q20667921 ) } } } } . FILTER ( ?w > ?p ) }
Kaufbeuren
action count
action greater
action union
action find_reverse_tuple_counts
relation sister city
type human settlement
type type of french administrative division
action find_reverse_tuple_counts
relation sister city
type human settlement
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Kaufbeuren
relation sister city
type type of french administrative division
type administrative territorial entity
[[{'concept': 'type of french administrative division'}, {'concept': 'administrative territorial entity'}], 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?d ) AS ?w ) WHERE { { ?s rdf:type ontology:human_settlement . ?d rdf:type ontology:type_of_french_administrative_division . ?d property:sister_city ?s } UNION { ?d rdf:type ontology:administrative_territorial_entity . ?s rdf:type ontology:human_settlement . ?d property:sister_city ?s } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { ?n property:sister_city resource:Kaufbeuren . { ?n rdf:type ?i . VALUES ( ?i ) { ( ontology:administrative_territorial_entity ) ( ontology:type_of_french_administrative_division ) } } } } . FILTER ( ?w > ?p ) }
[]
human settlement type of french administrative division administrative territorial entity
SYSTEM
69
Q105084 Q107094 Q583485 Q1055 Q14891 Q576636 Q139242 Q105048 Q158004 Q2916 Q104720 Q104725 Q1799 Q1792 Q41753 Q26590 Q191106 Q214215 Q47554 Q209932 Q263107 Q92212 Q24879 Q173270 Q693628 Q264201 Q3777 Q102317 Q8969 Q104712 Q171219 Q1026520 Q234184 Q52842 Q165204 Q52845 Q173121 Q386991 Q145972 Q319813 Q62868 Q61306 Q61302 Q104740 Q125293 Q31487 Q41252 Q209034 Q204271 Q106583 Q37333 Q2843 Q103892 Q200805 Q268 Q53077 Q82765 Q201516 Q82500 Q48256 Q103217 Q504849 Q81033 Q505185 Q9022 Q131266 Q104731 Q107106 Q752460
(c(Q20667921)|c(Q56061),P190,c(Q486972))
action count
action greater
action union
action find_reverse_tuple_counts
relation P190
type Q486972
type Q20667921
action find_reverse_tuple_counts
relation P190
type Q486972
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q14805
relation P190
type Q20667921
type Q56061
[ANSWER]
[[{'concept': 'Q20667921'}, {'concept': 'Q56061'}], 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?d ) AS ?w ) WHERE { { ?s rdf:type ontology:Q486972 . ?d rdf:type ontology:Q20667921 . ?d property:P190 ?s } UNION { ?d rdf:type ontology:Q56061 . ?s rdf:type ontology:Q486972 . ?d property:P190 ?s } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { ?n property:P190 resource:Q14805 . { ?n rdf:type ?i . VALUES ( ?i ) { ( ontology:Q56061 ) ( ontology:Q20667921 ) } } } } . FILTER ( ?w > ?p ) }
Gliwice Rybnik Schwaz Hamburg Suhl Huamantla Zacatecas Słupsk Piotrków Trybunalski Osnabrück Zielona Góra Płock Wrocław Gdańsk Klagenfurt Ciudad Juárez Haapsalu La Paz Toruń Biała Podlaska Judenburg Opole Bremen Veracruz Wilmersdorf Mariazell Ouagadougou Kielce Cancún Elbląg Dornbirn Juan-les-Pins Chełm Kalisz Mérida Konin Querétaro Torreón Zamość Siedlce Koszalin Guanajuato Chihuahua Radom Puebla City Kraków Bydgoszcz Toluca San Luis Potosí Bielsko-Biała Lublin Lübeck Zabrze Aguascalientes Poznań Saltillo Olsztyn Miami Beach St. Pölten Dnipro Częstochowa Ochsenfurt Monterrey Pößneck Guadalajara Krems an der Donau Gorzów Wielkopolski Jastrzębie-Zdrój Los Mochis
69
action count
action greater
action union
action find_reverse_tuple_counts
relation sister city
type human settlement
type type of french administrative division
action find_reverse_tuple_counts
relation sister city
type human settlement
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Kaufbeuren
relation sister city
type type of french administrative division
type administrative territorial entity
[[{'concept': 'type of french administrative division'}, {'concept': 'administrative territorial entity'}], 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?d ) AS ?w ) WHERE { { ?s rdf:type ontology:human_settlement . ?d rdf:type ontology:type_of_french_administrative_division . ?d property:sister_city ?s } UNION { ?d rdf:type ontology:administrative_territorial_entity . ?s rdf:type ontology:human_settlement . ?d property:sister_city ?s } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { ?n property:sister_city resource:Kaufbeuren . { ?n rdf:type ?i . VALUES ( ?i ) { ( ontology:administrative_territorial_entity ) ( ontology:type_of_french_administrative_division ) } } } } . FILTER ( ?w > ?p ) }
[]