Simple Question (Direct)
Simple Question
Q507699
P135
Q968159
USER
Which art movement was Edward Young linked with ?
(Q507699,P135,c(Q968159))
action filter_type
action find
entity Q507699
relation P135
type Q968159
['Q507699', 'P135', {'concept': 'Q968159'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q968159 . resource:Q507699 property:P135 ?d }
Edward Young
action filter_type
action find
entity Edward Young
relation movement
type art movement
['Edward Young', 'movement', {'concept': 'art movement'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:art_movement . resource:Edward_Young property:movement ?d }
[]
art movement
Q37068
SYSTEM
Romanticism
Q37068
(Q507699,P135,c(Q968159))
action filter_type
action find
entity Q507699
relation P135
type Q968159
Edward Young was linked to [ANSWER]
['Q507699', 'P135', {'concept': 'Q968159'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q968159 . resource:Q507699 property:P135 ?d }
Romanticism
Edward Young was linked to Romanticism
Romanticism
action filter_type
action find
entity Edward Young
relation movement
type art movement
['Edward Young', 'movement', {'concept': 'art movement'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:art_movement . resource:Edward_Young property:movement ?d }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q37068
P136
Q502895
USER
Which people have that art movement as their category ?
(c(Q502895),P136,Q37068)
action filter_type
action find_reverse
entity Q37068
relation P136
type Q502895
[{'concept': 'Q502895'}, 'P136', 'Q37068']
SELECT DISTINCT ?o WHERE { ?o property:P136 resource:Q37068 . ?o rdf:type ontology:Q502895 }
Romanticism
action filter_type
action find_reverse
entity Romanticism
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'Romanticism']
SELECT DISTINCT ?o WHERE { ?o property:genre resource:Romanticism . ?o rdf:type ontology:common_name }
[]
common name
Q181885 Q20631865
SYSTEM
Mikhail Glinka, Salowkendraniladitya
Q181885 Q20631865
(c(Q502895),P136,Q37068)
action filter_type
action find_reverse
entity Q37068
relation P136
type Q502895
[ANSWERS] have that art movement as their category
[{'concept': 'Q502895'}, 'P136', 'Q37068']
SELECT DISTINCT ?o WHERE { ?o property:P136 resource:Q37068 . ?o rdf:type ontology:Q502895 }
Mikhail Glinka Salowkendraniladitya
Mikhail Glinka and Salowkendraniladitya have that art movement as their category
Mikhail Glinka Salowkendraniladitya
action filter_type
action find_reverse
entity Romanticism
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'Romanticism']
SELECT DISTINCT ?o WHERE { ?o property:genre resource:Romanticism . ?o rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P725
Q502895 Q11424
USER
Which films did min number of people do the dubbing for ?
(c(Q11424),P725,c(Q502895))
action argmin
action find_tuple_counts
relation P725
type Q11424
type Q502895
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?k ) { SELECT DISTINCT ?o ( COUNT ( ?e ) AS ?b ) WHERE { ?o property:P725 ?e . ?o rdf:type ontology:Q11424 . ?e rdf:type ontology:Q502895 } GROUP BY ?o } } . { SELECT DISTINCT ?w ( COUNT ( ?u ) AS ?m ) WHERE { ?w property:P725 ?u . ?u rdf:type ontology:Q502895 . ?w rdf:type ontology:Q11424 } GROUP BY ?w } . FILTER ( ?m = ?k ) }
action argmin
action find_tuple_counts
relation voice actor
type film
type common name
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?k ) { SELECT DISTINCT ?o ( COUNT ( ?e ) AS ?b ) WHERE { ?o property:voice_actor ?e . ?o rdf:type ontology:film . ?e rdf:type ontology:common_name } GROUP BY ?o } } . { SELECT DISTINCT ?w ( COUNT ( ?u ) AS ?m ) WHERE { ?w property:voice_actor ?u . ?u rdf:type ontology:common_name . ?w rdf:type ontology:film } GROUP BY ?w } . FILTER ( ?m = ?k ) }
[]
common name film
Q943192
SYSTEM
Fantasia
Q943192
(c(Q11424),P725,c(Q502895))
action argmin
action find_tuple_counts
relation P725
type Q11424
type Q502895
Min number of people did the dubbing of [ANSWER]
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?k ) { SELECT DISTINCT ?o ( COUNT ( ?e ) AS ?b ) WHERE { ?o property:P725 ?e . ?o rdf:type ontology:Q11424 . ?e rdf:type ontology:Q502895 } GROUP BY ?o } } . { SELECT DISTINCT ?w ( COUNT ( ?u ) AS ?m ) WHERE { ?w property:P725 ?u . ?u rdf:type ontology:Q502895 . ?w rdf:type ontology:Q11424 } GROUP BY ?w } . FILTER ( ?m = ?k ) }
Fantasia
Min number of people did the dubbing of Fantasia
Fantasia
action argmin
action find_tuple_counts
relation voice actor
type film
type common name
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?k ) { SELECT DISTINCT ?o ( COUNT ( ?e ) AS ?b ) WHERE { ?o property:voice_actor ?e . ?o rdf:type ontology:film . ?e rdf:type ontology:common_name } GROUP BY ?o } } . { SELECT DISTINCT ?w ( COUNT ( ?u ) AS ?m ) WHERE { ?w property:voice_actor ?u . ?u rdf:type ontology:common_name . ?w rdf:type ontology:film } GROUP BY ?w } . FILTER ( ?m = ?k ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q943192
P1441
Q15619164
USER
Which abstract being is featured in that film ?
(c(Q15619164),P1441,Q943192)
action filter_type
action find_reverse
entity Q943192
relation P1441
type Q15619164
[{'concept': 'Q15619164'}, 'P1441', 'Q943192']
SELECT DISTINCT ?i WHERE { ?i property:P1441 resource:Q943192 . ?i rdf:type ontology:Q15619164 }
Fantasia
action filter_type
action find_reverse
entity Fantasia
relation present in work
type abstract being
[{'concept': 'abstract being'}, 'present in work', 'Fantasia']
SELECT DISTINCT ?i WHERE { ?i property:present_in_work resource:Fantasia . ?i rdf:type ontology:abstract_being }
[]
abstract being
Q15140801
SYSTEM
Chernabog
Q15140801
(c(Q15619164),P1441,Q943192)
action filter_type
action find_reverse
entity Q943192
relation P1441
type Q15619164
[ANSWER] is featured in that film
[{'concept': 'Q15619164'}, 'P1441', 'Q943192']
SELECT DISTINCT ?i WHERE { ?i property:P1441 resource:Q943192 . ?i rdf:type ontology:Q15619164 }
Chernabog
Chernabog is featured in that film
Chernabog
action filter_type
action find_reverse
entity Fantasia
relation present in work
type abstract being
[{'concept': 'abstract being'}, 'present in work', 'Fantasia']
SELECT DISTINCT ?i WHERE { ?i property:present_in_work resource:Fantasia . ?i rdf:type ontology:abstract_being }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q37068
P135 P21
Q502895
USER
Which people are associated with Romanticism and are a male ?
AND((c(Q502895),P135,Q37068), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q37068
relation P135
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P135', 'Q37068'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . ?b property:P135 resource:Q37068 . ?b property:P21 resource:Q6581097 }
male Romanticism
action filter_type
action intersection
action find_reverse
entity Romanticism
relation movement
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'movement', 'Romanticism'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . ?b property:movement resource:Romanticism . ?b property:gender resource:male }
[]
common name
Q49767 Q5951343 Q5950180 Q5945645 Q2857134 Q2843315 Q1354027 Q79822 Q75889 Q3814954
SYSTEM
Some of them are François-René de Chateaubriand, Juan Martínez Villergas, Juan José Bueno y Leroux, José Somoza, Antonin Moine, Leopoldo Augusto de Cueto, 1st Marquis of Valmar, Paul Huet, Adam Mickiewicz, Friedrich Hölderlin, Pedro Calvo Asensio
Q520688 Q8193459 Q6117643 Q602137 Q11023392 Q1397919 Q627987 Q3158162 Q168356 Q3032159 Q312630 Q64652 Q3857293 Q1354027 Q3580060 Q6013808 Q184212 Q310791 Q79822 Q77371 Q507699 Q11686185 Q316806 Q3498826 Q576824 Q713816 Q2466214 Q937096 Q1125747 Q458288 Q3060211 Q69339 Q3383224 Q5951343 Q4985 Q645491 Q3367743 Q353263 Q5943708 Q1960701 Q360383 Q352914 Q675849 Q179680 Q761705 Q7159675 Q82083 Q159297 Q2699511 Q982251 Q311145 Q4148362 Q977731 Q3818039 Q3163756 Q5885525 Q653434 Q81960 Q152513 Q2532628 Q342467 Q981572 Q2624029 Q6161324 Q4894015 Q63699 Q157271 Q309702 Q24192306 Q455703 Q5950180 Q1975238 Q1377747 Q1797092 Q5873133 Q15001 Q2857218 Q41513 Q5562043 Q33477 Q209077 Q664602 Q134958 Q2626280 Q1545524 Q938402 Q5655012 Q3471157 Q5924257 Q3327800 Q2063108 Q555449 Q19569779 Q3184970 Q203715 Q502 Q714341 Q399155 Q323144 Q380723 Q1791060 Q676001 Q474066 Q6300605 Q157623 Q49767 Q951933 Q5679 Q6293223 Q1347199 Q1348571 Q5940047 Q5921205 Q5945645 Q5952097 Q1797180 Q597727 Q298773 Q4132490 Q2462913 Q647963 Q5850736 Q362089 Q27357 Q823003 Q3067739 Q16867 Q2857134 Q7290518 Q44403 Q7420628 Q5163740 Q3164190 Q161145 Q436726 Q573223 Q3070319 Q3390843 Q13000 Q728173 Q21281902 Q1031 Q122382 Q1389396 Q5414223 Q79025 Q2943440 Q2843315 Q1344012 Q9015429 Q365423 Q3371706 Q562178 Q5258787 Q5665584 Q181568 Q2831339 Q560757 Q336010 Q184935 Q2180971 Q2215703 Q1446788 Q46599 Q19859018 Q1863471 Q315537 Q1345186 Q155463 Q3392485 Q2871155 Q188697 Q332191 Q4212776 Q332110 Q6314318 Q3814954 Q5340521 Q3774440 Q6501838 Q2667042 Q9054013 Q1403499 Q2480182 Q60684 Q5698327 Q4993107 Q183713 Q688529 Q159758 Q320962 Q312096 Q376416 Q5432 Q5932129 Q5605782 Q3526479 Q6701 Q1703852 Q316327 Q6099878 Q5639841 Q728365 Q2857082 Q9088297 Q4821289 Q1065323 Q512948 Q1706308 Q318584 Q20973384 Q11686234 Q70988 Q474810 Q3187778 Q4255270 Q3395137 Q3321013 Q6206495 Q5940827 Q3478437 Q6714 Q7412884 Q75889 Q215945 Q1029257
AND((c(Q502895),P135,Q37068), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q37068
relation P135
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] are associated with Romanticism and are a male
{'AND': [[{'concept': 'Q502895'}, 'P135', 'Q37068'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . ?b property:P135 resource:Q37068 . ?b property:P21 resource:Q6581097 }
Alexandre Herculano Alberto Camino Salvador Bermúdez de Castro Antonio García Gutiérrez Mkrtich Armen Joaquín Francisco Pacheco y Gutiérrez-Calderón Modesto Lafuente y Zamalloa Jacques Auguste Regnier Adam Oehlenschläger Nicomedes Pastor Díaz y Corbelle Théodore de Banville Gaspar Núñez de Arce Miguel de los Santos Álvarez Paul Huet Édouard Wacken Miguel Agustín Príncipe Théodore Géricault Jules Michelet Adam Mickiewicz Friedrich de la Motte Fouqué Edward Young José Rúa Figueroa Almeida Garrett Stevan Kaćanski Jan Adam Kruseman Juan Arolas Étienne-Jules Ramey John Martin Tomàs Aguiló i Forteza Alexandre-Gabriel Decamps Eugène Viala Nathaniel Hawthorne Pierre-Joseph Witdoeck Juan Martínez Villergas Herman Melville Yevhen Hrebinka Pascual Pérez Rodríguez Ventura de la Vega José María de Andueza Manuel de Cabanyes Gil Vicente Karel Jaromír Erben Nils Blommér Alfred de Musset Louis Bouilhet Pedro José Pidal, 1st Marquis of Pidal John Keats John Constable José Amador de los Ríos Samuel Palmer Joaquim Maria Machado de Assis Henri Grevedon Fialho de Almeida Francisco Navarro Villoslada Ange Tissier Gregorio Romero de Larrañaga Félix Duban Robert Burns Henry Wadsworth Longfellow Gonçalves de Magalhães, Viscount of Araguaia Théodore Chassériau John Clare António Feliciano de Castilho Vicente Ruiz Llamas Vicente Boix Eduard Mörike Karl Wilhelm Friedrich Schlegel Alfred de Vigny Theodor Pfeiffer José de Alencar Juan José Bueno y Leroux François Roffiaen Juan Eugenio Hartzenbusch Manuel de Araújo Porto-Alegre Gabino Tejado y Rodríguez Aleksander Griboyedov Antonio de Brugada William Blake Carlos García Doncel Eugène Delacroix José de Espronceda Léopold Robert Taras Shevchenko Manuel Milà i Fontanals Ramón de Mesonero Romanos Laza Kostić Antonio Ros de Olano Samuel James Ainsley Jacinto de Salas y Quiroga Francisco Añón Paz Pascual de Gayangos y Arce Eduardo Acevedo Díaz Gustave Lassalle-Bordes Joseph Fricero Gustavo Adolfo Bécquer Stendhal Eugène Isabey Agustín Durán Ambroise Louis Garneray Hart Crane Franklin Távora Eugène Devéria Cornelis Springer Juan Nicolás Böhl de Faber Vasily Zhukovsky François-René de Chateaubriand Félicien-César David Lord Byron José María Díaz Serafín Estébanez Calderón Joseph Ferdinand Boissard de Boisdenier José García de Villalta Isidoro Gil y Baus José Somoza Juan Pérez Calvo Martins Pena Antoni Malczewski Mariano José de Larra Gian Paolo Borghetti Adriaan Brock Ionel Teodoreanu Eulogio Florentino Sanz Jovan Jovanović Zmaj Francisco de Paula Martínez de la Rosa y Berdejo Bernardo Guimarães Joaquín Rubió i Ors Edgar Allan Poe Antonin Moine Ramón López Soler Heinrich Heine Santos López Pelegrín Constantin Lecca Jean-Baptiste Kindermans Horace Vernet Ary Scheffer Patricio de la Escosura Ivan Soshenko Antonio Neira de Mosquera Karel Lodewijk Ledeganck Achille Devéria Luis Valladares y Garriga France Prešeren Henry Fuseli Piotr Michałowski Eusebio Asquerino Walter Scott Antonio Flores Leopoldo Augusto de Cueto, 1st Marquis of Valmar Enrique Gil y Carrasco Juan Cortada Camilo Castelo Branco Paul Lormier Ricardo Palma Tobias Barreto Gabriel García Tassara Ivan Aivazovsky Albert Lenoir Wilhelm Hensel Charles Nodier Mihai Eminescu Ferdinand Marinus Salvatore Lo Forte Joseph Félon Mikhail Lermontov Léon-Marie-Joseph Billardet Jules Victor Génisson William Cowper Federico de Madrazo y Kuntz Ángel de Saavedra, 3rd Duke of Rivas José María Posada Auguste Clésinger Alphonse de Lamartine Fermín Caballero Manuel Cañete Antonio Alcalá Galiano Junqueira Freire Pedro Calvo Asensio Eduardo Asquerino Manuel Bretón de los Herreros Laurindo Rabelo Antonio Gil y Zárate Pablo Piferrer Joseph Quinaux Castro Alves Novalis Antonio Ferrer del Río Thomas Dixon, Jr. Théophile Gautier Johannes Carsten Hauch J. M. W. Turner Louis Lacombe Thomas Lawrence Janko Kráľ Francisco de Goya Joaquín José Cervino Manuel Nicolás Corpancho Théodore Pavie Jacob Grimm Jorge Isaacs José Maria de Eça de Queiroz Ramón Navarrete Juan Ariza Eugenio de Ochoa Antonio de Bofarull Tomás Rodríguez Rubí Augusto Ferrán Charles Leickert Jan Willem Pieneman Josep Maria Quadrado Thomas Rowlandson Paul Emile Nicolié José de Castro y Orozco Ludwig Achim von Arnim Prilidiano Pueyrredón Juan Rico y Amat Mariano Roca de Togores, 1st Marquis of Molins Antolín Faraldo Xoán Manuel Pintos Villar Joaquín María Bover de Roselló José Joaquín de Mora Semyon Raich Wilhelm Grimm Samuel Warren Friedrich Hölderlin Jens Baggesen Camille Roqueplan
François-René de Chateaubriand, Juan Martínez Villergas, Juan José Bueno y Leroux, José Somoza, Antonin Moine, Leopoldo Augusto de Cueto, 1st Marquis of Valmar, Paul Huet, Adam Mickiewicz, Friedrich Hölderlin and Pedro Calvo Asensio are associated with Romanticism and are a male
François-René de Chateaubriand Juan Martínez Villergas Juan José Bueno y Leroux José Somoza Antonin Moine Leopoldo Augusto de Cueto, 1st Marquis of Valmar Paul Huet Adam Mickiewicz Friedrich Hölderlin Pedro Calvo Asensio
action filter_type
action intersection
action find_reverse
entity Romanticism
relation movement
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'movement', 'Romanticism'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . ?b property:movement resource:Romanticism . ?b property:gender resource:male }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q27067917 Q15140801
P1441
Q11424
USER
Which films contain Chernabog or Stromboli ?
OR((Q15140801,P1441,c(Q11424)), (Q27067917,P1441,c(Q11424)))
action filter_type
action union
action find
entity Q15140801
relation P1441
action find
entity Q27067917
relation P1441
type Q11424
{'OR': [['Q15140801', 'P1441', {'concept': 'Q11424'}], ['Q27067917', 'P1441', {'concept': 'Q11424'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q15140801 property:P1441 ?r } UNION { resource:Q27067917 property:P1441 ?r } } . ?r rdf:type ontology:Q11424 }
Stromboli Chernabog
action filter_type
action union
action find
entity Chernabog
relation present in work
action find
entity Stromboli
relation present in work
type film
{'OR': [['Chernabog', 'present in work', {'concept': 'film'}], ['Stromboli', 'present in work', {'concept': 'film'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Chernabog property:present_in_work ?r } UNION { resource:Stromboli property:present_in_work ?r } } . ?r rdf:type ontology:film }
[]
film
Q4341553 Q943192
SYSTEM
Pinocchio, Fantasia
Q4341553 Q943192
OR((Q15140801,P1441,c(Q11424)), (Q27067917,P1441,c(Q11424)))
action filter_type
action union
action find
entity Q15140801
relation P1441
action find
entity Q27067917
relation P1441
type Q11424
[ANSWERS] contain Chernabog or Stromboli
{'OR': [['Q15140801', 'P1441', {'concept': 'Q11424'}], ['Q27067917', 'P1441', {'concept': 'Q11424'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q15140801 property:P1441 ?r } UNION { resource:Q27067917 property:P1441 ?r } } . ?r rdf:type ontology:Q11424 }
Pinocchio Fantasia
Pinocchio and Fantasia contain Chernabog or Stromboli
Pinocchio Fantasia
action filter_type
action union
action find
entity Chernabog
relation present in work
action find
entity Stromboli
relation present in work
type film
{'OR': [['Chernabog', 'present in work', {'concept': 'film'}], ['Stromboli', 'present in work', {'concept': 'film'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Chernabog property:present_in_work ?r } UNION { resource:Stromboli property:present_in_work ?r } } . ?r rdf:type ontology:film }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1041 Q5945645
P530 P27
Q15617994
USER
Which administrative territories are José Somoza a civilian of or have diplomatic relationships with Senegal ?
OR((Q5945645,P27,c(Q15617994)), (Q1041,P530,c(Q15617994)))
action filter_type
action union
action find
entity Q5945645
relation P27
action find
entity Q1041
relation P530
type Q15617994
{'OR': [['Q5945645', 'P27', {'concept': 'Q15617994'}], ['Q1041', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q5945645 property:P27 ?j } UNION { resource:Q1041 property:P530 ?j } } . ?j rdf:type ontology:Q15617994 }
Senegal José Somoza
action filter_type
action union
action find
entity José Somoza
relation country of citizenship
action find
entity Senegal
relation diplomatic relation
type designation for an administrative territorial entity
{'OR': [['José Somoza', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Senegal', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:José_Somoza property:country_of_citizenship ?j } UNION { resource:Senegal property:diplomatic_relation ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q1011
SYSTEM
Spain, Cape Verde
Q29 Q1011
OR((Q5945645,P27,c(Q15617994)), (Q1041,P530,c(Q15617994)))
action filter_type
action union
action find
entity Q5945645
relation P27
action find
entity Q1041
relation P530
type Q15617994
[ANSWERS] are José Somoza a civilian of or have diplomatic relationships with Senegal
{'OR': [['Q5945645', 'P27', {'concept': 'Q15617994'}], ['Q1041', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q5945645 property:P27 ?j } UNION { resource:Q1041 property:P530 ?j } } . ?j rdf:type ontology:Q15617994 }
Spain Cape Verde
Spain and Cape Verde are José Somoza a civilian of or have diplomatic relationships with Senegal
Spain Cape Verde
action filter_type
action union
action find
entity José Somoza
relation country of citizenship
action find
entity Senegal
relation diplomatic relation
type designation for an administrative territorial entity
{'OR': [['José Somoza', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Senegal', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:José_Somoza property:country_of_citizenship ?j } UNION { resource:Senegal property:diplomatic_relation ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q3198797
P495
Q838948
USER
Does Kontinuasom originate at those administrative territories ?
(Q3198797,P495,Q29) (Q3198797,P495,Q1011)
action is_in
entity prev_answer
action find
entity Q3198797
relation P495
['Q3198797', 'P495', 'Q29'] ['Q3198797', 'P495', 'Q1011']
ASK WHERE { resource:Q3198797 property:P495 ?t . VALUES ( ?t ) { ( resource:Q29 ) ( resource:Q1011 ) } }
Kontinuasom
action is_in
entity prev_answer
action find
entity Kontinuasom
relation country of origin
['Kontinuasom', 'country of origin', 'Spain'] ['Kontinuasom', 'country of origin', 'Cape Verde']
ASK WHERE { resource:Kontinuasom property:country_of_origin ?t . VALUES ( ?t ) { ( resource:Spain ) ( resource:Cape_Verde ) } }
[]
work of art
SYSTEM
YES
(Q3198797,P495,Q29) (Q3198797,P495,Q1011)
action is_in
entity prev_answer
action find
entity Q3198797
relation P495
[ANSWER]
['Q3198797', 'P495', 'Q29'] ['Q3198797', 'P495', 'Q1011']
ASK WHERE { resource:Q3198797 property:P495 ?t . VALUES ( ?t ) { ( resource:Q29 ) ( resource:Q1011 ) } }
Yes
action is_in
entity prev_answer
action find
entity Kontinuasom
relation country of origin
['Kontinuasom', 'country of origin', 'Spain'] ['Kontinuasom', 'country of origin', 'Cape Verde']
ASK WHERE { resource:Kontinuasom property:country_of_origin ?t . VALUES ( ?t ) { ( resource:Spain ) ( resource:Cape_Verde ) } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q65104 Q5951343
P27 P17
Q15617994
USER
Which administrative territories do Juan Martínez Villergas belong to or are Lantsch/Lenz located in ?
OR((Q5951343,P27,c(Q15617994)), (Q65104,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5951343
relation P27
action find
entity Q65104
relation P17
type Q15617994
{'OR': [['Q5951343', 'P27', {'concept': 'Q15617994'}], ['Q65104', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q5951343 property:P27 ?u } UNION { resource:Q65104 property:P17 ?u } } . ?u rdf:type ontology:Q15617994 }
Lantsch/Lenz Juan Martínez Villergas
action filter_type
action union
action find
entity Juan Martínez Villergas
relation country of citizenship
action find
entity Lantsch/Lenz
relation country
type designation for an administrative territorial entity
{'OR': [['Juan Martínez Villergas', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Lantsch/Lenz', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Juan_Martínez_Villergas property:country_of_citizenship ?u } UNION { resource:Lantsch/Lenz property:country ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q39
SYSTEM
Spain, Switzerland
Q29 Q39
OR((Q5951343,P27,c(Q15617994)), (Q65104,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5951343
relation P27
action find
entity Q65104
relation P17
type Q15617994
Juan Martínez Villergas belong to [ANSWERS]
{'OR': [['Q5951343', 'P27', {'concept': 'Q15617994'}], ['Q65104', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q5951343 property:P27 ?u } UNION { resource:Q65104 property:P17 ?u } } . ?u rdf:type ontology:Q15617994 }
Spain Switzerland
Juan Martínez Villergas belong to Spain and Switzerland
Spain Switzerland
action filter_type
action union
action find
entity Juan Martínez Villergas
relation country of citizenship
action find
entity Lantsch/Lenz
relation country
type designation for an administrative territorial entity
{'OR': [['Juan Martínez Villergas', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Lantsch/Lenz', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Juan_Martínez_Villergas property:country_of_citizenship ?u } UNION { resource:Lantsch/Lenz property:country ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q207815
P710
Q15275719
USER
Did those administrative territories particiate in Eurovision Song Contest 1996 ?
(Q207815,P710,Q29) (Q207815,P710,Q39)
action is_in
entity prev_answer
action find
entity Q207815
relation P710
['Q207815', 'P710', 'Q29'] ['Q207815', 'P710', 'Q39']
ASK WHERE { resource:Q207815 property:P710 ?v . VALUES ( ?v ) { ( resource:Q29 ) ( resource:Q39 ) } }
Eurovision Song Contest 1996
action is_in
entity prev_answer
action find
entity Eurovision Song Contest 1996
relation participant
['Eurovision Song Contest 1996', 'participant', 'Spain'] ['Eurovision Song Contest 1996', 'participant', 'Switzerland']
ASK WHERE { resource:Eurovision_Song_Contest_1996 property:participant ?v . VALUES ( ?v ) { ( resource:Spain ) ( resource:Switzerland ) } }
[]
recurring event
SYSTEM
YES
(Q207815,P710,Q29) (Q207815,P710,Q39)
action is_in
entity prev_answer
action find
entity Q207815
relation P710
[ANSWER]
['Q207815', 'P710', 'Q29'] ['Q207815', 'P710', 'Q39']
ASK WHERE { resource:Q207815 property:P710 ?v . VALUES ( ?v ) { ( resource:Q29 ) ( resource:Q39 ) } }
Yes
action is_in
entity prev_answer
action find
entity Eurovision Song Contest 1996
relation participant
['Eurovision Song Contest 1996', 'participant', 'Spain'] ['Eurovision Song Contest 1996', 'participant', 'Switzerland']
ASK WHERE { resource:Eurovision_Song_Contest_1996 property:participant ?v . VALUES ( ?v ) { ( resource:Spain ) ( resource:Switzerland ) } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have ambassadorial relations with approximately 74 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 74
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { FILTER ( ?f = 74 ) . { SELECT DISTINCT ?z ( COUNT ( ?l ) AS ?f ) WHERE { ?z rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q15617994 . ?z property:P530 ?l } GROUP BY ?z } }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 74
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { FILTER ( ?f = 74 ) . { SELECT DISTINCT ?z ( COUNT ( ?l ) AS ?f ) WHERE { ?z rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z property:diplomatic_relation ?l } GROUP BY ?z } }
[]
designation for an administrative territorial entity political territorial entity
Q408 Q16
SYSTEM
Australia, Canada
Q408 Q16
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 74
[ANSWERS] have ambassadorial relations with approximately 74 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { FILTER ( ?f = 74 ) . { SELECT DISTINCT ?z ( COUNT ( ?l ) AS ?f ) WHERE { ?z rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q15617994 . ?z property:P530 ?l } GROUP BY ?z } }
Australia Canada
Australia and Canada have ambassadorial relations with approximately 74 administrative territories
Australia Canada
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 74
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { FILTER ( ?f = 74 ) . { SELECT DISTINCT ?z ( COUNT ( ?l ) AS ?f ) WHERE { ?z rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z property:diplomatic_relation ?l } GROUP BY ?z } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q878
P530
Q15617994
USER
Do United Arab Emirates have ambassadorial relations with those political territories ?
(Q878,P530,Q408) (Q878,P530,Q16)
action is_in
entity prev_answer
action find
entity Q878
relation P530
['Q878', 'P530', 'Q408'] ['Q878', 'P530', 'Q16']
ASK WHERE { resource:Q878 property:P530 ?f . VALUES ( ?f ) { ( resource:Q408 ) ( resource:Q16 ) } }
United Arab Emirates
action is_in
entity prev_answer
action find
entity United Arab Emirates
relation diplomatic relation
['United Arab Emirates', 'diplomatic relation', 'Australia'] ['United Arab Emirates', 'diplomatic relation', 'Canada']
ASK WHERE { resource:United_Arab_Emirates property:diplomatic_relation ?f . VALUES ( ?f ) { ( resource:Australia ) ( resource:Canada ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q878,P530,Q408) (Q878,P530,Q16)
action is_in
entity prev_answer
action find
entity Q878
relation P530
[ANSWER]
['Q878', 'P530', 'Q408'] ['Q878', 'P530', 'Q16']
ASK WHERE { resource:Q878 property:P530 ?f . VALUES ( ?f ) { ( resource:Q408 ) ( resource:Q16 ) } }
Yes
action is_in
entity prev_answer
action find
entity United Arab Emirates
relation diplomatic relation
['United Arab Emirates', 'diplomatic relation', 'Australia'] ['United Arab Emirates', 'diplomatic relation', 'Canada']
ASK WHERE { resource:United_Arab_Emirates property:diplomatic_relation ?f . VALUES ( ?f ) { ( resource:Australia ) ( resource:Canada ) } }
[]