Simple Question (Direct)
Simple Question
Q2422295
P21
Q290
USER
What is the sex of Thomas Baumer ?
(Q2422295,P21,c(Q290))
action filter_type
action find
entity Q2422295
relation P21
type Q290
['Q2422295', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q2422295 property:P21 ?e . ?e rdf:type ontology:Q290 }
Thomas Baumer
action filter_type
action find
entity Thomas Baumer
relation gender
type sex
['Thomas Baumer', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Thomas_Baumer property:gender ?e . ?e rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2422295,P21,c(Q290))
action filter_type
action find
entity Q2422295
relation P21
type Q290
The sex of Thomas Baumer is the [ANSWER]
['Q2422295', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q2422295 property:P21 ?e . ?e rdf:type ontology:Q290 }
male
The sex of Thomas Baumer is the male
male
action filter_type
action find
entity Thomas Baumer
relation gender
type sex
['Thomas Baumer', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Thomas_Baumer property:gender ?e . ?e rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2422295
P19
Q56061
USER
Where was that person born ?
(Q6581097,P19,c(Q56061))
action filter_type
action find
entity Q2422295
relation P19
type Q56061
['Q6581097', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q2422295 property:P19 ?x . ?x rdf:type ontology:Q56061 }
Thomas Baumer
action filter_type
action find
entity Thomas Baumer
relation place of birth
type administrative territorial entity
['male', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Thomas_Baumer property:place_of_birth ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q36378
SYSTEM
Fribourg
Q36378
(Q6581097,P19,c(Q56061))
action filter_type
action find
entity Q2422295
relation P19
type Q56061
That person was born in [ANSWER]
['Q6581097', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q2422295 property:P19 ?x . ?x rdf:type ontology:Q56061 }
Fribourg
That person was born in Fribourg
Fribourg
action filter_type
action find
entity Thomas Baumer
relation place of birth
type administrative territorial entity
['male', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Thomas_Baumer property:place_of_birth ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2462645 Q36378
P20
Q502895
USER
Which people have Fribourg or Leighton Buzzard as the location of death ?
OR((c(Q502895),P20,Q36378), (c(Q502895),P20,Q2462645))
action filter_type
action union
action find_reverse
entity Q36378
relation P20
action find_reverse
entity Q2462645
relation P20
type Q502895
{'OR': [[{'concept': 'Q502895'}, 'P20', 'Q36378'], [{'concept': 'Q502895'}, 'P20', 'Q2462645']]}
SELECT DISTINCT ?w WHERE { { ?w property:P20 ?e . VALUES ( ?e ) { ( resource:Q36378 ) ( resource:Q2462645 ) } } . ?w rdf:type ontology:Q502895 }
Leighton Buzzard Fribourg
action filter_type
action union
action find_reverse
entity Fribourg
relation place of death
action find_reverse
entity Leighton Buzzard
relation place of death
type common name
{'OR': [[{'concept': 'common name'}, 'place of death', 'Fribourg'], [{'concept': 'common name'}, 'place of death', 'Leighton Buzzard']]}
SELECT DISTINCT ?w WHERE { { ?w property:place_of_death ?e . VALUES ( ?e ) { ( resource:Fribourg ) ( resource:Leighton_Buzzard ) } } . ?w rdf:type ontology:common_name }
[]
common name
Q3302666 Q2646246 Q1697320 Q748847 Q1597586 Q15621782 Q1306045 Q1679194 Q18816678 Q3261423
SYSTEM
Some of them are Maxime Quartenoud, Alfred Overbeck, Johann Buchstab, Branislav Sekulić, Heinrich Herm, Frédéric Vaillant, Alain de Weck, Jakob Laub, Fridolin Reynold, Louis Cardinaux
Q3068535 Q1635505 Q115805 Q15663400 Q2607554 Q15437061 Q26658369 Q364686 Q2060179 Q3665615 Q119921 Q119912 Q2926619 Q8196475 Q4815645 Q3173493 Q26203110 Q119093 Q15663415 Q110194 Q3034974 Q125301 Q3420721 Q44624 Q19259489 Q1697320 Q5341507 Q760766 Q590421 Q118984 Q2839378 Q62827 Q116403 Q18221341 Q19628962 Q3526387 Q15663325 Q3496638 Q1618098 Q119156 Q17864516 Q2034053 Q21055959 Q122819 Q15621773 Q15621772 Q15621770 Q15621777 Q15621776 Q15621775 Q15621774 Q15621779 Q15621778 Q1557442 Q4102224 Q2898740 Q3302666 Q1336066 Q748847 Q1704693 Q813788 Q3185491 Q7087549 Q3261813 Q1597586 Q116107 Q3262130 Q2093474 Q3261423 Q15621766 Q3111529 Q3372302 Q3185549 Q3136196 Q15621781 Q1705763 Q15621786 Q2646246 Q673672 Q1685947 Q1383660 Q3186529 Q15663308 Q365762 Q2093505 Q5411509 Q15663365 Q2574946 Q1369425 Q16010491 Q15856550 Q3439604 Q19312203 Q1605851 Q3148157 Q2861924 Q19294988 Q3068620 Q116750 Q18736251 Q121147 Q674180 Q18816673 Q124238 Q19629417 Q15621792 Q1450841 Q18816678 Q361509 Q3188447 Q124467 Q117889 Q26279195 Q3900889 Q27046527 Q114854 Q685627 Q671786 Q1508787 Q1611259 Q18736301 Q679296 Q1690561 Q3262817 Q2058458 Q15621788 Q15621789 Q19629425 Q15621782 Q15621783 Q15621780 Q1874648 Q122203 Q113759 Q3579866 Q2637735 Q18916508 Q1492600 Q15663355 Q1372638 Q20851317 Q122856 Q1149996 Q1239031 Q3052241 Q17305212 Q15621790 Q329508 Q3384799 Q12749871 Q681154 Q3564929 Q3052277 Q15663436 Q70599 Q76176 Q731141 Q1306045 Q116126 Q3343505 Q88978 Q3608048 Q2839350 Q2856807 Q919145 Q3102636 Q1679194 Q26280831 Q125358 Q1304860
OR((c(Q502895),P20,Q36378), (c(Q502895),P20,Q2462645))
action filter_type
action union
action find_reverse
entity Q36378
relation P20
action find_reverse
entity Q2462645
relation P20
type Q502895
[ANSWERS] have Fribourg or Leighton Buzzard as the location of death
{'OR': [[{'concept': 'Q502895'}, 'P20', 'Q36378'], [{'concept': 'Q502895'}, 'P20', 'Q2462645']]}
SELECT DISTINCT ?w WHERE { { ?w property:P20 ?e . VALUES ( ?e ) { ( resource:Q36378 ) ( resource:Q2462645 ) } } . ?w rdf:type ontology:Q502895 }
Ferdinand Béghin Hugo Oser Charles Journet Louis Weck-Reynold Maryja Mahdaliena Radzivil Sebastian Verro Teddy Aeby Servais-Théodore Pinckaers Ludwik Bronarski Ceslas Spicq Max Aebischer Eugène Deschenaux Bruno Baeriswyl Raymond Meuwly Athole Stewart Jean Merrien Franz Steffens Pierre Aeby Théodore Perroud Heinrich Adolph Baumhauer Dominique Barthélemy Oscar Moret Raymond Buchs Peter Canisius Antoine-Philippe Progin Johann Buchstab Edward Adey August Ackermann Anton Hänggi Catherine Repond Aloÿs Fornerod Wilhelm Schmidt Bernard Genoud Pierre d'Englisberg Joseph Schorderet Théodore Ayer Jean Pierre de Landerset Stanislas Aeby Hilarin Felder Hans Geiler Jan Modzelewski Oskar Vasella Sophie Piccard Marius Besson André Castella Jean-Joseph Broye Léon Pittet Frédéric Bielmann Jean Folly Joseph Wicky Hubert Charles François-Xavier Bondallaz Henri-Benjamin Presset Guy Bedouelle Peter Wagner Bernard Weck Maxime Quartenoud Emil Franz Josef Müller-Büchi Branislav Sekulić Josef Groner Beda Hefti Joseph Piller Oliver G. Pike Louis Dupraz Heinrich Herm Jean Bourgknecht Louis Guyardin Pierre Glasson Louis Cardinaux Jean Quartenoud Gottfried Locher Paul Torche Joseph Reichlen Hiram Brülhart Rodolphe de Weck Josef Siegwart Alphonse Théraulaz Alfred Overbeck Józef Maria Bocheński Jean de Montenach Peter Jäggi José Python Julien de Schaller Adolphe Merkle Pierre Haab Franz Friedrich Leitschuh Alfred von der Weid Wilhelm Schneider Ulrich Lampert Reto Delnon Adolphe Eggis Roger de Diesbach Émile Bise Henri Gicot Ignace Baron Armand Niquille Louis Bourgknecht Ferdinand Masset Gonzague de Reynold Jean-Nicolas-Elisabeth Berchtold Anton Cottier Jean-Marie Musy Augustin Egger Philippe de Weck Arnold Ruffieux Simon Nicolas Constantin de Castella Franz Peter Savary Fridolin Reynold Adolf Faller Jules Bovet Oskar Naegeli Louis d’Affry Joseph Emmanuel Curty Peter Maggenberg Joseph de Raemy Martin Juritsch Jean-Edouard de Castella Augustinus von Galen Georges Bavaud Johannes Salat Christophe-Joachim Marro Hans Gieng Joachim Wattendorff Louis Ody Paul-Alcide Blancpain François-Xavier Menoud Charles de Weck Nicolas Nuoffer Frédéric Vaillant Henri Gaspard de Schaller François Romain Werro Ludwig Kathariner François Charrière Leopold Andrian Édouard Gremaud Albert Büchi René Binz Gallus Maria Manser Pierre Delley Eugen Isele Charles Griset de Forel Joseph Ackermann Caesar Barazetti Pierre Esseiva Emil Zehnder Jacob Lorenz Philippe Fournier Nicolas Maurice Arthus Pierre Dreyer Vladimir Gaćinović Oswald Pilloud Les Shannon Emile Savoy Modeste Bise Prince Maximilian of Saxony Hugo Obermaier Raymond Léopold Bruckberger Alain de Weck Jean-Baptiste Girard Norbert Moret Ernst Stein Albert Gockel Alois Baeriswyl Antoine Weissenbach Verney Lovett Cameron Georges Ducotterd Jakob Laub Joseph de Landerset Georges Aeby Séverin Bays
Maxime Quartenoud, Alfred Overbeck, Johann Buchstab, Branislav Sekulić, Heinrich Herm, Frédéric Vaillant, Alain de Weck, Jakob Laub, Fridolin Reynold and Louis Cardinaux have Fribourg or Leighton Buzzard as the location of death
Maxime Quartenoud Alfred Overbeck Johann Buchstab Branislav Sekulić Heinrich Herm Frédéric Vaillant Alain de Weck Jakob Laub Fridolin Reynold Louis Cardinaux
action filter_type
action union
action find_reverse
entity Fribourg
relation place of death
action find_reverse
entity Leighton Buzzard
relation place of death
type common name
{'OR': [[{'concept': 'common name'}, 'place of death', 'Fribourg'], [{'concept': 'common name'}, 'place of death', 'Leighton Buzzard']]}
SELECT DISTINCT ?w WHERE { { ?w property:place_of_death ?e . VALUES ( ?e ) { ( resource:Fribourg ) ( resource:Leighton_Buzzard ) } } . ?w rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q1001378
USER
Which cinematic techniques had atmost 50 people as the dubbing artist ?
(c(Q1001378),P725,c(Q502895))
action atmost
action find_tuple_counts
relation P725
type Q1001378
type Q502895
value 50
[{'concept': 'Q1001378'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?p ) WHERE { ?x property:P725 ?i . ?i rdf:type ontology:Q502895 . ?x rdf:type ontology:Q1001378 } GROUP BY ?x } . FILTER ( ?p <= 50 ) }
action atmost
action find_tuple_counts
relation voice actor
type cinematic technique
type common name
value 50
[{'concept': 'cinematic technique'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?p ) WHERE { ?x property:voice_actor ?i . ?i rdf:type ontology:common_name . ?x rdf:type ontology:cinematic_technique } GROUP BY ?x } . FILTER ( ?p <= 50 ) }
[]
common name cinematic technique
Q15270647 Q104905 Q6144664
SYSTEM
Zootopia, WALL•E, Inside Out
Q656998 Q6505964 Q120367 Q2388260 Q21079862 Q1093555 Q15270742 Q15270647 Q27229786 Q2329413 Q562140 Q6144664 Q221679 Q392530 Q192212 Q23647031 Q182153 Q15728879 Q2388653 Q246283 Q908816 Q244434 Q3623997 Q4096274 Q18647981 Q655133 Q2615381 Q191803 Q170035 Q2613318 Q171048 Q223217 Q6739642 Q15709928 Q14545073 Q467678 Q15140309 Q656396 Q187266 Q15975680 Q4243413 Q104905 Q329603 Q633053
(c(Q1001378),P725,c(Q502895))
action atmost
action find_tuple_counts
relation P725
type Q1001378
type Q502895
value 50
[ANSWERS] had atmost 50 people as the dubbing artist
[{'concept': 'Q1001378'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?p ) WHERE { ?x property:P725 ?i . ?i rdf:type ontology:Q502895 . ?x rdf:type ontology:Q1001378 } GROUP BY ?x } . FILTER ( ?p <= 50 ) }
Garfield's Pet Force Rudolph the Red-Nosed Reindeer: The Movie Shark Tale The Humpbacked Horse Cars 3 Swan Lake Adventures of Mowgli Zootopia The Animated Adventures of Tom Sawyer Barbie as the Princess and the Pauper Yobi, the Five Tailed Fox Inside Out Meet the Robinsons Treasure Planet Cars 2 Batman: The Killing Joke Cars My Little Pony: Equestria Girls 2 – Rainbow Rocks Tom Sawyer Frozen The Secret of Kells Lady and the Tramp II: Scamp's Adventure FernGully 2: The Magical Rescue The Bremen Town Musicians Moana Treasure Island Korgoth of Barbaria The Lion King II: Simba's Pride Ratatouille Garfield's Fun Fest Toy Story The Lion King 1½ Making Stars Tríd an Stoirm 1912 film The Little Mermaid II: Return to the Sea Emil & Ida i Lönneberga Mickey's Magical Christmas: Snowed in at the House of Mouse Toy Story 2 Tamako Love Story Ku! Kin-dza-dza WALL•E Laura's Star Surf's Up
Zootopia, WALL•E and Inside Out had atmost 50 people as the dubbing artist
Zootopia WALL•E Inside Out
action atmost
action find_tuple_counts
relation voice actor
type cinematic technique
type common name
value 50
[{'concept': 'cinematic technique'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?p ) WHERE { ?x property:voice_actor ?i . ?i rdf:type ontology:common_name . ?x rdf:type ontology:cinematic_technique } GROUP BY ?x } . FILTER ( ?p <= 50 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q36378
P190
Q515 Q20667921
USER
How many cities or french administrative divisions are twin city of Fribourg ?
(c(Q515),P190,Q36378) (c(Q20667921),P190,Q36378)
action count
action union
action filter_type
action find_reverse
entity Q36378
relation P190
type Q515
action filter_type
action find_reverse
entity Q36378
relation P190
type Q20667921
[{'concept': 'Q515'}, 'P190', 'Q36378'] [{'concept': 'Q20667921'}, 'P190', 'Q36378']
SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { ?e rdf:type ?y . VALUES ( ?y ) { ( ontology:Q20667921 ) ( ontology:Q515 ) } }
Fribourg
action count
action union
action filter_type
action find_reverse
entity Fribourg
relation sister city
type city
action filter_type
action find_reverse
entity Fribourg
relation sister city
type type of french administrative division
[{'concept': 'city'}, 'sister city', 'Fribourg'] [{'concept': 'type of french administrative division'}, 'sister city', 'Fribourg']
SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { ?e rdf:type ?y . VALUES ( ?y ) { ( ontology:type_of_french_administrative_division ) ( ontology:city ) } }
[]
city type of french administrative division
SYSTEM
2
Q174091 Q193920
(c(Q515),P190,Q36378) (c(Q20667921),P190,Q36378)
action count
action union
action filter_type
action find_reverse
entity Q36378
relation P190
type Q515
action filter_type
action find_reverse
entity Q36378
relation P190
type Q20667921
[ANSWER]
[{'concept': 'Q515'}, 'P190', 'Q36378'] [{'concept': 'Q20667921'}, 'P190', 'Q36378']
SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { ?e rdf:type ?y . VALUES ( ?y ) { ( ontology:Q20667921 ) ( ontology:Q515 ) } }
Changsha Rueil-Malmaison
2
action count
action union
action filter_type
action find_reverse
entity Fribourg
relation sister city
type city
action filter_type
action find_reverse
entity Fribourg
relation sister city
type type of french administrative division
[{'concept': 'city'}, 'sister city', 'Fribourg'] [{'concept': 'type of french administrative division'}, 'sister city', 'Fribourg']
SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { ?e rdf:type ?y . VALUES ( ?y ) { ( ontology:type_of_french_administrative_division ) ( ontology:city ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7746671 Q15270647
P495
Q15617994
USER
Which administrative territories are the countries of origin of Zootopia or The Legend Beautiful ?
OR((Q15270647,P495,c(Q15617994)), (Q7746671,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q15270647
relation P495
action find
entity Q7746671
relation P495
type Q15617994
{'OR': [['Q15270647', 'P495', {'concept': 'Q15617994'}], ['Q7746671', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { ?e property:P495 ?t . VALUES ( ?e ) { ( resource:Q15270647 ) ( resource:Q7746671 ) } } . ?t rdf:type ontology:Q15617994 }
The Legend Beautiful Zootopia
action filter_type
action union
action find
entity Zootopia
relation country of origin
action find
entity The Legend Beautiful
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Zootopia', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['The Legend Beautiful', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { ?e property:country_of_origin ?t . VALUES ( ?e ) { ( resource:Zootopia ) ( resource:The_Legend_Beautiful ) } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
OR((Q15270647,P495,c(Q15617994)), (Q7746671,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q15270647
relation P495
action find
entity Q7746671
relation P495
type Q15617994
[ANSWER] is the countries of origin of Zootopia or The Legend Beautiful
{'OR': [['Q15270647', 'P495', {'concept': 'Q15617994'}], ['Q7746671', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { ?e property:P495 ?t . VALUES ( ?e ) { ( resource:Q15270647 ) ( resource:Q7746671 ) } } . ?t rdf:type ontology:Q15617994 }
United States of America
United States of America is the countries of origin of Zootopia or The Legend Beautiful
United States of America
action filter_type
action union
action find
entity Zootopia
relation country of origin
action find
entity The Legend Beautiful
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Zootopia', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['The Legend Beautiful', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { ?e property:country_of_origin ?t . VALUES ( ?e ) { ( resource:Zootopia ) ( resource:The_Legend_Beautiful ) } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P137
Q2221906 Q811979
USER
How many geographic locations or architectural structures are the administrator of that administrative territory ?
(c(Q2221906),P137,Q30) (c(Q811979),P137,Q30) (c(Q2221906),P137,Q30) (c(Q811979),P137,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P137
type Q2221906
action filter_type
action find_reverse
entity Q30
relation P137
type Q811979
[{'concept': 'Q2221906'}, 'P137', 'Q30'] [{'concept': 'Q811979'}, 'P137', 'Q30'] [{'concept': 'Q2221906'}, 'P137', 'Q30'] [{'concept': 'Q811979'}, 'P137', 'Q30']
SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { { ?z property:P137 resource:Q30 . ?z rdf:type ontology:Q2221906 } UNION { ?z property:P137 resource:Q30 . ?z rdf:type ontology:Q811979 } }
action count
action union
action filter_type
action find_reverse
entity United States of America
relation operator
type geographic location
action filter_type
action find_reverse
entity United States of America
relation operator
type architectural structure
[{'concept': 'geographic location'}, 'operator', 'United States of America'] [{'concept': 'architectural structure'}, 'operator', 'United States of America'] [{'concept': 'geographic location'}, 'operator', 'United States of America'] [{'concept': 'architectural structure'}, 'operator', 'United States of America']
SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { { ?z property:operator resource:United_States_of_America . ?z rdf:type ontology:geographic_location } UNION { ?z property:operator resource:United_States_of_America . ?z rdf:type ontology:architectural_structure } }
[]
geographic location architectural structure
SYSTEM
2
Q5164573 Q19360183
(c(Q2221906),P137,Q30) (c(Q811979),P137,Q30) (c(Q2221906),P137,Q30) (c(Q811979),P137,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P137
type Q2221906
action filter_type
action find_reverse
entity Q30
relation P137
type Q811979
[ANSWER]
[{'concept': 'Q2221906'}, 'P137', 'Q30'] [{'concept': 'Q811979'}, 'P137', 'Q30'] [{'concept': 'Q2221906'}, 'P137', 'Q30'] [{'concept': 'Q811979'}, 'P137', 'Q30']
SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { { ?z property:P137 resource:Q30 . ?z rdf:type ontology:Q2221906 } UNION { ?z property:P137 resource:Q30 . ?z rdf:type ontology:Q811979 } }
Consulate General of the United States, Hamburg Embassy of the United States, Mogadishu
2
action count
action union
action filter_type
action find_reverse
entity United States of America
relation operator
type geographic location
action filter_type
action find_reverse
entity United States of America
relation operator
type architectural structure
[{'concept': 'geographic location'}, 'operator', 'United States of America'] [{'concept': 'architectural structure'}, 'operator', 'United States of America'] [{'concept': 'geographic location'}, 'operator', 'United States of America'] [{'concept': 'architectural structure'}, 'operator', 'United States of America']
SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { { ?z property:operator resource:United_States_of_America . ?z rdf:type ontology:geographic_location } UNION { ?z property:operator resource:United_States_of_America . ?z rdf:type ontology:architectural_structure } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many political territories have tactful political relations with atmost 4 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 4
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?d ) WHERE { ?x property:P530 ?i . ?i rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 } GROUP BY ?x } . FILTER ( ?d <= 4 ) }
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 4
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?d ) WHERE { ?x property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?x } . FILTER ( ?d <= 4 ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
9
Q1000 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 4
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?d ) WHERE { ?x property:P530 ?i . ?i rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 } GROUP BY ?x } . FILTER ( ?d <= 4 ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
9
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 4
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?d ) WHERE { ?x property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?x } . FILTER ( ?d <= 4 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have tactful political relations with atleast 73 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 73
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?u >= 73 ) . { SELECT DISTINCT ?k ( COUNT ( ?t ) AS ?u ) WHERE { ?k property:P530 ?t . ?k rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q15617994 } GROUP BY ?k } }
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 73
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?u >= 73 ) . { SELECT DISTINCT ?k ( COUNT ( ?t ) AS ?u ) WHERE { ?k property:diplomatic_relation ?t . ?k rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } }
[]
designation for an administrative territorial entity political territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q1048835),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 73
[ANSWERS] have tactful political relations with atleast 73 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?u >= 73 ) . { SELECT DISTINCT ?k ( COUNT ( ?t ) AS ?u ) WHERE { ?k property:P530 ?t . ?k rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q15617994 } GROUP BY ?k } }
Germany Australia
Germany and Australia have tactful political relations with atleast 73 administrative territories
Germany Australia
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 73
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?u >= 73 ) . { SELECT DISTINCT ?k ( COUNT ( ?t ) AS ?u ) WHERE { ?k property:diplomatic_relation ?t . ?k rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q183 Q408
P35
Q502895
USER
Who are the chiefs of state of those political territories ?
(Q183,P35,c(Q502895)) (Q408,P35,c(Q502895))
action filter_type
action find
entity prev_answer
relation P35
type Q502895
['Q183', 'P35', {'concept': 'Q502895'}] ['Q408', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { ?l property:P35 ?n . VALUES ( ?l ) { ( resource:Q183 ) ( resource:Q408 ) } . ?n rdf:type ontology:Q502895 }
Germany Australia
action filter_type
action find
entity prev_answer
relation head of state
type common name
['Germany', 'head of state', {'concept': 'common name'}] ['Australia', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { ?l property:head_of_state ?n . VALUES ( ?l ) { ( resource:Germany ) ( resource:Australia ) } . ?n rdf:type ontology:common_name }
[]
common name
Q2567 Q9682 Q2571
SYSTEM
Richard von Weizsäcker, Elizabeth II, Walter Scheel
Q2569 Q2594 Q2538 Q2573 Q2563 Q2571 Q2567 Q2551 Q2542 Q2540 Q2582 Q189186 Q1354851 Q335033 Q355053 Q335310 Q1356927 Q1382174 Q250087 Q335323 Q229300 Q1354229 Q976974 Q9682 Q267745 Q735387 Q333824
(Q183,P35,c(Q502895)) (Q408,P35,c(Q502895))
action filter_type
action find
entity prev_answer
relation P35
type Q502895
The chiefs of state of those political territories are President [ANSWERS]
['Q183', 'P35', {'concept': 'Q502895'}] ['Q408', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { ?l property:P35 ?n . VALUES ( ?l ) { ( resource:Q183 ) ( resource:Q408 ) } . ?n rdf:type ontology:Q502895 }
Karl Carstens Theodor Heuss Joachim Gauck Gustav Heinemann Roman Herzog Walter Scheel Richard von Weizsäcker Johannes Rau Horst Köhler Christian Wulff Heinrich Lübke Zelman Cowen John Kerr William Slim, 1st Viscount Slim Michael Jeffery Richard Casey, Baron Casey Ninian Stephen Paul Hasluck Bill Hayden William Morrison, 1st Viscount Dunrossil Quentin Bryce Peter Hollingworth Peter Cosgrove Elizabeth II William Deane William McKell William Sidney, 1st Viscount De L'Isle
The chiefs of state of those political territories are President Richard von Weizsäcker, Elizabeth II and Walter Scheel
Richard von Weizsäcker Elizabeth II Walter Scheel
action filter_type
action find
entity prev_answer
relation head of state
type common name
['Germany', 'head of state', {'concept': 'common name'}] ['Australia', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { ?l property:head_of_state ?n . VALUES ( ?l ) { ( resource:Germany ) ( resource:Australia ) } . ?n rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2567
P551
Q56061
USER
Which administrative territories were that person a resident of ?
(Q2567,P551,c(Q56061))
action filter_type
action find
entity Q2567
relation P551
type Q56061
['Q2567', 'P551', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q2567 property:P551 ?p . ?p rdf:type ontology:Q56061 }
Richard von Weizsäcker
action filter_type
action find
entity Richard von Weizsäcker
relation residence
type administrative territorial entity
['Richard von Weizsäcker', 'residence', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Richard_von_Weizsäcker property:residence ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q9682
SYSTEM
Did you mean Elizabeth II ?
Q2567 Q9682 Q2571
(Q2567,P551,c(Q56061)) (Q9682,P551,c(Q56061)) (Q2571,P551,c(Q56061))
[ANSWER]
['Q2567', 'P551', {'concept': 'Q56061'}] ['Q9682', 'P551', {'concept': 'Q56061'}] ['Q2571', 'P551', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q2567 property:P551 ?p . ?p rdf:type ontology:Q56061 }
Richard von Weizsäcker Elizabeth II Walter Scheel
Did you mean Elizabeth II ?
Elizabeth II
['Richard von Weizsäcker', 'residence', {'concept': 'administrative territorial entity'}] ['Elizabeth II', 'residence', {'concept': 'administrative territorial entity'}] ['Walter Scheel', 'residence', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Richard_von_Weizsäcker property:residence ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Richard von Weizsäcker. Could you tell me the answer for that?
(Q2567,P551,c(Q56061))
Q2567
['Q2567', 'P551', {'concept': 'Q56061'}]
['Richard von Weizsäcker', 'residence', {'concept': 'administrative territorial entity'}]
[]
Q64 Q70 Q585
SYSTEM
Berlin, Bern, Oslo
Q1748 Q64 Q70 Q78 Q585
(Q2567,P551,c(Q56061))
action filter_type
action find
entity Q2567
relation P551
type Q56061
[ANSWERS] were that person a resident of
['Q2567', 'P551', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q2567 property:P551 ?p . ?p rdf:type ontology:Q56061 }
Copenhagen Berlin Bern Basel Oslo
Berlin, Bern and Oslo were that person a resident of
Berlin Bern Oslo
action filter_type
action find
entity Richard von Weizsäcker
relation residence
type administrative territorial entity
['Richard von Weizsäcker', 'residence', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Richard_von_Weizsäcker property:residence ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]