Simple Question (Direct)
Simple Question
Q2696864
P106
Q12737077
USER
Which occupations have Friedrich Schmid as his/her 's career ?
(Q2696864,P106,c(Q12737077))
action filter_type
action find
entity Q2696864
relation P106
type Q12737077
['Q2696864', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q2696864 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
Friedrich Schmid
action filter_type
action find
entity Friedrich Schmid
relation occupation
type occupation
['Friedrich Schmid', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Friedrich_Schmid property:occupation ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q16533 Q82955
SYSTEM
judge, politician
Q16533 Q82955
(Q2696864,P106,c(Q12737077))
action filter_type
action find
entity Q2696864
relation P106
type Q12737077
[ANSWERS] have Friedrich Schmid as his/her 's career
['Q2696864', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q2696864 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
judge politician
Judge and politician have Friedrich Schmid as his/her 's career
judge politician
action filter_type
action find
entity Friedrich Schmid
relation occupation
type occupation
['Friedrich Schmid', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Friedrich_Schmid property:occupation ?a . ?a rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16533
P425
Q179805
USER
Which political philosophy is associated with the field of occupation judge ?
(Q16533,P425,c(Q179805))
action filter_type
action find
entity Q16533
relation P425
type Q179805
['Q16533', 'P425', {'concept': 'Q179805'}]
SELECT DISTINCT ?n WHERE { resource:Q16533 property:P425 ?n . ?n rdf:type ontology:Q179805 }
judge
action filter_type
action find
entity judge
relation field of this occupation
type political philosophy
['judge', 'field of this occupation', {'concept': 'political philosophy'}]
SELECT DISTINCT ?n WHERE { resource:judge property:field_of_this_occupation ?n . ?n rdf:type ontology:political_philosophy }
[]
political philosophy
Q105985
SYSTEM
judiciary
Q105985
(Q16533,P425,c(Q179805))
action filter_type
action find
entity Q16533
relation P425
type Q179805
[ANSWER] is associated with the field of occupation judge
['Q16533', 'P425', {'concept': 'Q179805'}]
SELECT DISTINCT ?n WHERE { resource:Q16533 property:P425 ?n . ?n rdf:type ontology:Q179805 }
judiciary
Judiciary is associated with the field of occupation judge
judiciary
action filter_type
action find
entity judge
relation field of this occupation
type political philosophy
['judge', 'field of this occupation', {'concept': 'political philosophy'}]
SELECT DISTINCT ?n WHERE { resource:judge property:field_of_this_occupation ?n . ?n rdf:type ontology:political_philosophy }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q105985 Q5635169
P361
Q895526
USER
Is HM Prison Edinburgh a component of that political philosophy ?
(Q5635169,P361,Q105985)
action is_in
entity Q5635169
action find
entity Q105985
relation P361
['Q5635169', 'P361', 'Q105985']
ASK WHERE { resource:Q105985 property:P361 resource:Q5635169 }
judiciary HM Prison Edinburgh
action is_in
entity HM Prison Edinburgh
action find
entity judiciary
relation part of
['HM Prison Edinburgh', 'part of', 'judiciary']
ASK WHERE { resource:judiciary property:part_of resource:HM_Prison_Edinburgh }
[]
authority organ
SYSTEM
NO
(Q5635169,P361,Q105985)
action is_in
entity Q5635169
action find
entity Q105985
relation P361
[ANSWER]
['Q5635169', 'P361', 'Q105985']
ASK WHERE { resource:Q105985 property:P361 resource:Q5635169 }
No
action is_in
entity HM Prison Edinburgh
action find
entity judiciary
relation part of
['HM Prison Edinburgh', 'part of', 'judiciary']
ASK WHERE { resource:judiciary property:part_of resource:HM_Prison_Edinburgh }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q173061
P825
Q502895 Q482994 Q44539
USER
How many people are lesser number of albums or temples dedicated to than Syd Barrett ?
(c(Q482994)|c(Q44539),P825,c(Q502895))
action count
action less
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q482994
action find_reverse_tuple_counts
relation P825
type Q502895
type Q44539
action count
action filter_multi_types
action find_reverse
entity Q173061
relation P825
type Q482994
type Q44539
[[{'concept': 'Q482994'}, {'concept': 'Q44539'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) ?a WHERE { ?t rdf:type ?e . VALUES ( ?e ) { ( ontology:Q482994 ) ( ontology:Q44539 ) } } GROUP BY ?a } . FILTER ( ?w < ?r ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) WHERE { ?m property:P825 resource:Q173061 . { { ?m rdf:type ontology:Q482994 } UNION { ?m rdf:type ontology:Q44539 } } } } }
Syd Barrett
action count
action less
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type album
action find_reverse_tuple_counts
relation dedicated to
type common name
type temple
action count
action filter_multi_types
action find_reverse
entity Syd Barrett
relation dedicated to
type album
type temple
[[{'concept': 'album'}, {'concept': 'temple'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) ?a WHERE { ?t rdf:type ?e . VALUES ( ?e ) { ( ontology:album ) ( ontology:temple ) } } GROUP BY ?a } . FILTER ( ?w < ?r ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) WHERE { ?m property:dedicated_to resource:Syd_Barrett . { { ?m rdf:type ontology:album } UNION { ?m rdf:type ontology:temple } } } } }
[]
common name album temple
SYSTEM
323
Q101698 Q282498 Q181707 Q360420 Q1357149 Q318636 Q18684004 Q983142 Q676555 Q11403872 Q85210 Q312747 Q12688 Q336692 Q611078 Q184935 Q65318 Q658756 Q1774929 Q183126 Q382053 Q572684 Q17812378 Q3190301 Q93373 Q457863 Q150767 Q989 Q157176 Q2288858 Q352978 Q1442 Q2959487 Q972905 Q448890 Q937 Q935 Q849 Q313737 Q7593283 Q1948037 Q747 Q5858974 Q607495 Q235863 Q8605 Q19629510 Q5147053 Q295090 Q18412922 Q351670 Q683792 Q3348840 Q685156 Q62068 Q297 Q2959955 Q171411 Q558261 Q87621 Q94316 Q1236699 Q458014 Q11074321 Q93341 Q313548 Q935496 Q461258 Q132684 Q45380 Q4130411 Q4127503 Q14345 Q38337 Q1398314 Q732526 Q65290 Q55398 Q1394 Q22985873 Q1064 Q5561411 Q44039 Q44032 Q20643690 Q9025343 Q37693 Q120180 Q41117 Q174231 Q200188 Q417686 Q276404 Q460876 Q181715 Q212850 Q8023 Q155540 Q878671 Q6699463 Q443559 Q535 Q115550 Q9439 Q539 Q42887 Q272899 Q170726 Q187550 Q2594000 Q313942 Q464192 Q379753 Q461104 Q298185 Q966298 Q1196817 Q433995 Q271651 Q244852 Q5593 Q183085 Q57240 Q1246313 Q2376505 Q85760 Q160257 Q284560 Q314846 Q41568 Q20173462 Q1429 Q697765 Q25089 Q724153 Q1425 Q1427 Q160614 Q313093 Q32613 Q269867 Q66005 Q191039 Q454840 Q20644286 Q42511 Q3719466 Q44258 Q18363 Q4340905 Q11633375 Q499022 Q719428 Q237149 Q311080 Q37064 Q7732 Q1288566 Q541694 Q152727 Q29179 Q313970 Q3262373 Q426814 Q7327 Q35548 Q570845 Q231690 Q6527 Q8195163 Q378656 Q174044 Q502943 Q77187 Q5837054 Q9455 Q2573616 Q313196 Q691402 Q369668 Q297483 Q1380238 Q1496 Q1036864 Q102527 Q51056 Q15432686 Q539427 Q462255 Q20757530 Q314802 Q8016 Q645141 Q215333 Q2853967 Q165274 Q700317 Q171977 Q1398704 Q11403852 Q311791 Q501 Q12872638 Q269520 Q204503 Q78657 Q234908 Q71231 Q4893207 Q346 Q727717 Q17308940 Q1132756 Q35149 Q636533 Q11619989 Q154353 Q2360522 Q119957 Q2025679 Q160149 Q382005 Q3770666 Q154232 Q551735 Q3618054 Q354519 Q349287 Q537553 Q154045 Q457433 Q1430 Q767 Q552220 Q215572 Q318974 Q3099236 Q157100 Q160435 Q472635 Q92467 Q316658 Q711836 Q3069570 Q6258837 Q1016482 Q709118 Q328341 Q1293541 Q93362 Q538335 Q179971 Q11368835 Q773580 Q164522 Q117710 Q11403867 Q461600 Q712653 Q23559 Q130777 Q130805 Q1268 Q603655 Q352748 Q163366 Q6108547 Q20643663 Q1153323 Q11107790 Q289215 Q351715 Q33477 Q149727 Q7349 Q468122 Q503886 Q444380 Q3372785 Q1769 Q1446 Q310462 Q10881970 Q170842 Q12718 Q132232 Q47120 Q87567 Q216873 Q232803 Q238090 Q374467 Q965463 Q3781346 Q174367 Q6203829 Q179858 Q5992912 Q3395811 Q45682 Q472851 Q982696 Q317997 Q284323 Q221263 Q123062 Q181689 Q964608 Q218690 Q469572 Q5984068 Q151803 Q16766274 Q82122 Q299179 Q1407 Q1405 Q836214 Q51673 Q1337419 Q234689 Q41309 Q354786
(c(Q482994)|c(Q44539),P825,c(Q502895))
action count
action less
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q482994
action find_reverse_tuple_counts
relation P825
type Q502895
type Q44539
action count
action filter_multi_types
action find_reverse
entity Q173061
relation P825
type Q482994
type Q44539
[ANSWER]
[[{'concept': 'Q482994'}, {'concept': 'Q44539'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) ?a WHERE { ?t rdf:type ?e . VALUES ( ?e ) { ( ontology:Q482994 ) ( ontology:Q44539 ) } } GROUP BY ?a } . FILTER ( ?w < ?r ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) WHERE { ?m property:P825 resource:Q173061 . { { ?m rdf:type ontology:Q482994 } UNION { ?m rdf:type ontology:Q44539 } } } } }
Gaetano Donizetti Gaspar Melchor de Jovellanos Charles Fourier Serge Lifar Giacomo Bassi Neville Marriner Caroline Weber Julian the Hospitaller Francis of Assisi Kitabatake Akiyoshi Karl Ritter von Stremayr Leopoldo Alas Jean Jaurès Rodolphe Kreutzer António José de Ávila, 1st Duke of Ávila and Bolama Mihai Eminescu Kibitsuhiko-no-mikoto Alof de Wignacourt Ferreolus Ramakrishna Antonio Sant'Elia Thomas-Alexandre Dumas Francisco Pintado Fe Just of Lyon Archduke Rudolf of Austria Ingeborg Bronsart von Schellendorf Benjamin Britten John Paul II Władysław Szpilman Moriyoshi-shinnō Antoine Wiertz Septimius Severus Charles Joseph Lenoir Léon Goossens Charlotte Saunders Cushman Albert Einstein Isaac Newton François Villon Drusus Julius Caesar St Govan Moritz Reichsgraf von Fries Pierre Corneille Fermín Canella Secades Giuseppe De Nittis Genevieve Simón Bolívar Saint Goustan Collet Barker Léon Gambetta Johann Georg von Browne-Camus Komitas Vardapet Kitabatake Chikafusa Octave Gréard Karl Alois, Prince Lichnowsky Princess Augusta of Hesse-Kassel Diego Velázquez Charles Panzéra Oda Nobunaga Saint Servatius Antonie Brentano Kikuchi Taketoki Giuseppe Sinigaglia Ottaviano Petrucci Kaneyoshi-shinnō Miles Davis Absalon Abundius Yamato Takeru Saint-John Perse John Lewis Anastasia Vyaltseva Ferrutio Roh Moo-hyun Alexandre Dumas Paul Ladmirault José Guadalupe Posada Constantine, Prince of Hohenzollern-Hechingen Bernadette Soubirous Vladimir Lenin Elizabeth Jean Scott Alessandro Manzoni José Tartiere y Lenegre Ludwig II of Bavaria Egon Schiele Claude-Emma Debussy Luis Riera Posada Paul Gauguin Alexander III of Russia Kim Il-sung Meiji Jimmu Nazarius Takeda Shingen Lenny Bruce Thérèse of Lisieux Vitus Nelson Mandela Hans von Bülow Untash-Napirisha Ludwika Jędrzejewicz Elizabeth Sprague Coolidge Victor Hugo Nicholas of Flüe Queen Victoria Giuseppe Diego Garibaldi Pacheco Clement I Sebastian of Portugal Enrico Caruso Toyotomi Hideyoshi Diego Brosset Go-Daigo Vladimir Stasov Benito Jerónimo Feijóo y Montenegro Jaroslav Vrchlický Samuel Sánchez Kusunoki Masatsura Maeda Toshiie Fujiwara no Kamatari Michel Eugène Chevreul Gediminas Pablo Picasso Isabella II of Spain Ernst Bloch Dorothea von Ertmann Edith Cowan Giulietta Guicciardi Wanda Landowska Manuel Puig Emperor Kammu Michel de Montaigne Natalia Vladimirovna Trouhanowa Antoninus Pius Rudolf Maister Woody Allen Jesse Lauriston Livermore Trajan Hadrian Skanderbeg Herman Boerhaave Minamoto no Yoshiie Odile of Alsace Margrave Christian Ludwig of Brandenburg-Schwedt Germanicus William Cullen Bryant Mathilde Zemlinsky H. G. Wells Edmund Clarence Stedman Basil of Caesarea Alfonso XIII of Spain Bridget O'Connor Prince Toyokiirihiko Emmanuel Fremiet William Michael Rossetti Ida Rubinstein Uesugi Kenshin Alexander Fleming Louis XVI of France Len Lye Joseph Merk Frederick William, Elector of Brandenburg Francisco Franco Anton Arensky Louis Jou Emmanuel de Rohan-Polduc Yuri Gagarin Paul Cézanne Joseph Franz von Lobkowitz B. R. Ambedkar Jean-Jacques Rousseau Alfonso Iglesias Saint Pantaleon Alexander Nevsky Andrey Razumovsky Ferdinand von Hompesch zu Bolheim Ernesto Winter Blanco Vallabhbhai Patel Eric Fletcher Waters Louis Desaix Philip IV of Spain William Osler Ferdinando I de' Medici, Grand Duke of Tuscany Hugh d'Avranches, 1st Earl of Chester Ferdinand Magellan Kitabatake Akiie Robert Falcon Scott Franz Joseph I of Austria Georges Vallet Johann Jacob Bach Marino Lejarreta Madame Autard de Bragard Tenji Winston Churchill Armando Palacio Valdés Carl Czerny Antoine Gailleton Jacques Prévert Yasuhito Chichibu Tokugawa Ieyasu Alexander Wilhelm Gottschalg Kitabatake Morichika Nikolai Rubinstein Charles Baudelaire David of Euboea Shōken Pablo Martín Melitón de Sarasate y Navascués Alfred Grünfeld Nezami| Charles the Bald Sabino Fernández Campo, 1st Count of Latores Louis IX of France Ramón Pérez de Ayala James William Davison Sakai Tadatsugu Wilhelm Röntgen Pedro Rodríguez, Conde de Campomanes Prince Uji no Wakiiratsuko François Arago Anna Petrovna Kern Alexis Roland-Manuel Albert Thomas Mark Rothko Sugawara no Michizane Giuseppe Ghislanzoni Alexander Suvorov Edgar Quinet Annibale Cressoni Charley Patton Sutoku Ludwig Schuncke Alexei Nikolaevich Sara Dylan Marcus Aurelius Antoninus Stéphane Mallarmé Giuseppe Zanardelli Felix Nussbaum Vincent of Saragossa Minamoto no Tsunemoto Margaret of Austria, Duchess of Savoy Gerrit Rietveld Gustav, Prince of Vasa Theodor Avé-Lallemant Go-Toba Philippe Pot Fernando de Valdés y Salas John Thomas Stanley, 1st Baron Stanley of Alderley Burkhard Nadolny Tim Birkin Robert Smithson Saint Quentin Archduke Maximilian Francis of Austria Marianne Kirchgessner Chūai Shizuko Nogi Gianni Brera Hieda no Are Lorin Maazel Kitabatake Akinobu Teréz Brunszvik Henri Vernes Benito Mussolini Kazimir Malevich George I of Great Britain Frédéric Chopin Fidelis of Como John Spencer Ezra Pound Ricardo Vázquez-Prada Blanco Hélène Bardac Danguolė Rasalaitė Kristjan Cavazza Alejandro Boliviano Fruela I of Asturias Eugène Delacroix Saint Giles Joseph Haydn Nogi Maresuke Sterling Morrison Imogen Holst Paulino Vicente (padre) Alexander Severus Caracalla Saigō Takamori Itsuse no Mikoto Sergei Koroliov Auguste Comte Clara Schumann David Oistrakh Anton Rubinstein Pierre Puvis de Chavannes Empress Jingu Sholem Aleichem Gabriel of Our Lady of Sorrows Rumbold of Mechelen Aida Lafuente Penaos Djoser Jiří Tancibudek Urho Kekkonen Manuel Fernández Avello Dolores Medio Jean Sibelius Count Ferdinand Ernst Gabriel von Waldstein Bassel Khartabil Ōjin Eulalia of Mérida Philibert II, Duke of Savoy Jacques Necker Blind Willie McTell Lucien Pissarro Raymond Queneau John Nicholson Luis Noval Ferrao Piet Mondrian Michelle Vian Jean-Baptiste de Lamarck Kōmei Tiberius Augustus Princess Tōchi Mark Antony Emilio Alarcos Llorach Monica of Hippo Franz Liszt Jean-Louis-Ernest Meissonier
323
action count
action less
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type album
action find_reverse_tuple_counts
relation dedicated to
type common name
type temple
action count
action filter_multi_types
action find_reverse
entity Syd Barrett
relation dedicated to
type album
type temple
[[{'concept': 'album'}, {'concept': 'temple'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) ?a WHERE { ?t rdf:type ?e . VALUES ( ?e ) { ( ontology:album ) ( ontology:temple ) } } GROUP BY ?a } . FILTER ( ?w < ?r ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) WHERE { ?m property:dedicated_to resource:Syd_Barrett . { { ?m rdf:type ontology:album } UNION { ?m rdf:type ontology:temple } } } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2696864
P937
Q56061
USER
Where did Friedrich Schmid work ?
(Q2696864,P937,c(Q56061))
action filter_type
action find
entity Q2696864
relation P937
type Q56061
['Q2696864', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q56061 . resource:Q2696864 property:P937 ?o }
Friedrich Schmid
action filter_type
action find
entity Friedrich Schmid
relation work location
type administrative territorial entity
['Friedrich Schmid', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:administrative_territorial_entity . resource:Friedrich_Schmid property:work_location ?o }
[]
administrative territorial entity
Q70
SYSTEM
Bern
Q70
(Q2696864,P937,c(Q56061))
action filter_type
action find
entity Q2696864
relation P937
type Q56061
Friedrich Schmid worked in [ANSWER]
['Q2696864', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q56061 . resource:Q2696864 property:P937 ?o }
Bern
Friedrich Schmid worked in Bern
Bern
action filter_type
action find
entity Friedrich Schmid
relation work location
type administrative territorial entity
['Friedrich Schmid', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:administrative_territorial_entity . resource:Friedrich_Schmid property:work_location ?o }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P190
Q15617994 Q515
USER
How many administrative territories or cities are twin towns of that administrative territory ?
(Q70,P190,c(Q15617994)) (Q70,P190,c(Q515)) (Q70,P190,c(Q15617994)) (Q70,P190,c(Q515))
action count
action union
action filter_type
action find
entity Q70
relation P190
type Q15617994
action filter_type
action find
entity Q70
relation P190
type Q515
['Q70', 'P190', {'concept': 'Q15617994'}] ['Q70', 'P190', {'concept': 'Q515'}] ['Q70', 'P190', {'concept': 'Q15617994'}] ['Q70', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { VALUES ( ?x ) { ( ontology:Q515 ) ( ontology:Q15617994 ) } . ?o rdf:type ?x }
action count
action union
action filter_type
action find
entity Bern
relation sister city
type designation for an administrative territorial entity
action filter_type
action find
entity Bern
relation sister city
type city
['Bern', 'sister city', {'concept': 'designation for an administrative territorial entity'}] ['Bern', 'sister city', {'concept': 'city'}] ['Bern', 'sister city', {'concept': 'designation for an administrative territorial entity'}] ['Bern', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { VALUES ( ?x ) { ( ontology:city ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?o rdf:type ?x }
[]
designation for an administrative territorial entity city
SYSTEM
2
Q1844 Q13437
(Q70,P190,c(Q15617994)) (Q70,P190,c(Q515)) (Q70,P190,c(Q15617994)) (Q70,P190,c(Q515))
action count
action union
action filter_type
action find
entity Q70
relation P190
type Q15617994
action filter_type
action find
entity Q70
relation P190
type Q515
[ANSWER]
['Q70', 'P190', {'concept': 'Q15617994'}] ['Q70', 'P190', {'concept': 'Q515'}] ['Q70', 'P190', {'concept': 'Q15617994'}] ['Q70', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { VALUES ( ?x ) { ( ontology:Q515 ) ( ontology:Q15617994 ) } . ?o rdf:type ?x }
Vaduz Benevento
2
action count
action union
action filter_type
action find
entity Bern
relation sister city
type designation for an administrative territorial entity
action filter_type
action find
entity Bern
relation sister city
type city
['Bern', 'sister city', {'concept': 'designation for an administrative territorial entity'}] ['Bern', 'sister city', {'concept': 'city'}] ['Bern', 'sister city', {'concept': 'designation for an administrative territorial entity'}] ['Bern', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { VALUES ( ?x ) { ( ontology:city ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?o rdf:type ?x }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q70
P931
Q62447
USER
What city is served by Bern ?
(c(Q62447),P931,Q70)
action filter_type
action find_reverse
entity Q70
relation P931
type Q62447
[{'concept': 'Q62447'}, 'P931', 'Q70']
SELECT DISTINCT ?p WHERE { ?p property:P931 resource:Q70 . ?p rdf:type ontology:Q62447 }
Bern
action filter_type
action find_reverse
entity Bern
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Bern']
SELECT DISTINCT ?p WHERE { ?p property:place_served_by_airport resource:Bern . ?p rdf:type ontology:aerodrome }
[]
aerodrome
Q619845
SYSTEM
Bern Airport
Q619845
(c(Q62447),P931,Q70)
action filter_type
action find_reverse
entity Q70
relation P931
type Q62447
[ANSWER] is served by Bern
[{'concept': 'Q62447'}, 'P931', 'Q70']
SELECT DISTINCT ?p WHERE { ?p property:P931 resource:Q70 . ?p rdf:type ontology:Q62447 }
Bern Airport
Bern Airport is served by Bern
Bern Airport
action filter_type
action find_reverse
entity Bern
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Bern']
SELECT DISTINCT ?p WHERE { ?p property:place_served_by_airport resource:Bern . ?p rdf:type ontology:aerodrome }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q619845
P17
Q15617994
USER
Which administrative territory is that aerodrome present in ?
(Q619845,P17,c(Q15617994))
action filter_type
action find
entity Q619845
relation P17
type Q15617994
['Q619845', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q619845 property:P17 ?x . ?x rdf:type ontology:Q15617994 }
Bern Airport
action filter_type
action find
entity Bern Airport
relation country
type designation for an administrative territorial entity
['Bern Airport', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Bern_Airport property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q39
SYSTEM
Switzerland
Q39
(Q619845,P17,c(Q15617994))
action filter_type
action find
entity Q619845
relation P17
type Q15617994
That aerodrome is in [ANSWER]
['Q619845', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q619845 property:P17 ?x . ?x rdf:type ontology:Q15617994 }
Switzerland
That aerodrome is in Switzerland
Switzerland
action filter_type
action find
entity Bern Airport
relation country
type designation for an administrative territorial entity
['Bern Airport', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Bern_Airport property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q39 Q2485944 Q183
P530
Q1048835
USER
Is Switzerland known to have diplomatic connections with Nueva Requena and Germany ?
(Q39,P530,Q2485944) (Q39,P530,Q183)
action is_in
entity Q39
action intersection
action find_reverse
entity Q2485944
relation P530
action find_reverse
entity Q183
relation P530
['Q39', 'P530', 'Q2485944'] ['Q39', 'P530', 'Q183']
ASK WHERE { resource:Q39 property:P530 resource:Q2485944 . resource:Q39 property:P530 resource:Q183 }
Switzerland Nueva Requena Germany
action is_in
entity Switzerland
action intersection
action find_reverse
entity Nueva Requena
relation diplomatic relation
action find_reverse
entity Germany
relation diplomatic relation
['Switzerland', 'diplomatic relation', 'Nueva Requena'] ['Switzerland', 'diplomatic relation', 'Germany']
ASK WHERE { resource:Switzerland property:diplomatic_relation resource:Nueva_Requena . resource:Switzerland property:diplomatic_relation resource:Germany }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q39,P530,Q2485944) (Q39,P530,Q183)
action is_in
entity Q39
action intersection
action find_reverse
entity Q2485944
relation P530
action find_reverse
entity Q183
relation P530
[ANSWER]
['Q39', 'P530', 'Q2485944'] ['Q39', 'P530', 'Q183']
ASK WHERE { resource:Q39 property:P530 resource:Q2485944 . resource:Q39 property:P530 resource:Q183 }
NO and YES respectively
action is_in
entity Switzerland
action intersection
action find_reverse
entity Nueva Requena
relation diplomatic relation
action find_reverse
entity Germany
relation diplomatic relation
['Switzerland', 'diplomatic relation', 'Nueva Requena'] ['Switzerland', 'diplomatic relation', 'Germany']
ASK WHERE { resource:Switzerland property:diplomatic_relation resource:Nueva_Requena . resource:Switzerland property:diplomatic_relation resource:Germany }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q39
P159
Q1914636 Q43229
USER
How many activities or organizations have their HQ location at Switzerland ?
(c(Q1914636),P159,Q39) (c(Q43229),P159,Q39)
action count
action union
action filter_type
action find_reverse
entity Q39
relation P159
type Q1914636
action filter_type
action find_reverse
entity Q39
relation P159
type Q43229
[{'concept': 'Q1914636'}, 'P159', 'Q39'] [{'concept': 'Q43229'}, 'P159', 'Q39']
SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { { ?n rdf:type ontology:Q1914636 . ?n property:P159 resource:Q39 } UNION { ?n property:P159 resource:Q39 . ?n rdf:type ontology:Q43229 } }
Switzerland
action count
action union
action filter_type
action find_reverse
entity Switzerland
relation headquarters location
type activity
action filter_type
action find_reverse
entity Switzerland
relation headquarters location
type organization
[{'concept': 'activity'}, 'headquarters location', 'Switzerland'] [{'concept': 'organization'}, 'headquarters location', 'Switzerland']
SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { { ?n rdf:type ontology:activity . ?n property:headquarters_location resource:Switzerland } UNION { ?n property:headquarters_location resource:Switzerland . ?n rdf:type ontology:organization } }
[]
activity organization
SYSTEM
13
Q21552870 Q15957046 Q2837975 Q7923420 Q1353013 Q16962638 Q8045868 Q21035596 Q2136270 Q2822939 Q20878537 Q1435010 Q6520249
(c(Q1914636),P159,Q39) (c(Q43229),P159,Q39)
action count
action union
action filter_type
action find_reverse
entity Q39
relation P159
type Q1914636
action filter_type
action find_reverse
entity Q39
relation P159
type Q43229
[ANSWER]
[{'concept': 'Q1914636'}, 'P159', 'Q39'] [{'concept': 'Q43229'}, 'P159', 'Q39']
SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { { ?n rdf:type ontology:Q1914636 . ?n property:P159 resource:Q39 } UNION { ?n property:P159 resource:Q39 . ?n rdf:type ontology:Q43229 } }
EF English Live Mondia Allgemeine Gesellschaft der Schweizerischen Uhrenindustrie Vestergaard Frandsen Pantene Paradox Engineering YES Snowboards MiGFlug Rediffusion Aceair GMC Software AG Luxoft Leister Technologies
13
action count
action union
action filter_type
action find_reverse
entity Switzerland
relation headquarters location
type activity
action filter_type
action find_reverse
entity Switzerland
relation headquarters location
type organization
[{'concept': 'activity'}, 'headquarters location', 'Switzerland'] [{'concept': 'organization'}, 'headquarters location', 'Switzerland']
SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { { ?n rdf:type ontology:activity . ?n property:headquarters_location resource:Switzerland } UNION { ?n property:headquarters_location resource:Switzerland . ?n rdf:type ontology:organization } }
[]