Simple Question (Direct)
Simple Question
Q2638729
P641
Q349
USER
What was the sport that Branislav Jovanović was a part of ?
(Q2638729,P641,c(Q349))
action filter_type
action find
entity Q2638729
relation P641
type Q349
['Q2638729', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { resource:Q2638729 property:P641 ?r . ?r rdf:type ontology:Q349 }
Branislav Jovanović
action filter_type
action find
entity Branislav Jovanović
relation sport
type sport
['Branislav Jovanović', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { resource:Branislav_Jovanović property:sport ?r . ?r rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q2638729,P641,c(Q349))
action filter_type
action find
entity Q2638729
relation P641
type Q349
The sport that Branislav Jovanović was a part of was the [ANSWER]
['Q2638729', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { resource:Q2638729 property:P641 ?r . ?r rdf:type ontology:Q349 }
association football
The sport that Branislav Jovanović was a part of was the association football
association football
action filter_type
action find
entity Branislav Jovanović
relation sport
type sport
['Branislav Jovanović', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { resource:Branislav_Jovanović property:sport ?r . ?r rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2638729
P21
Q290
USER
Which sex does that person belong to ?
(Q2736,P21,c(Q290))
action filter_type
action find
entity Q2638729
relation P21
type Q290
['Q2736', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q2638729 property:P21 ?n . ?n rdf:type ontology:Q290 }
Branislav Jovanović
action filter_type
action find
entity Branislav Jovanović
relation gender
type sex
['association football', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Branislav_Jovanović property:gender ?n . ?n rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2736,P21,c(Q290))
action filter_type
action find
entity Q2638729
relation P21
type Q290
That person belongs to [ANSWER]
['Q2736', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q2638729 property:P21 ?n . ?n rdf:type ontology:Q290 }
male
That person belongs to male
male
action filter_type
action find
entity Branislav Jovanović
relation gender
type sex
['association football', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Branislav_Jovanović property:gender ?n . ?n rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q20070752
P21
Q502895
USER
Does Thomas Chabot have the gender as that sex ?
(Q20070752,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q20070752
relation P21
['Q20070752', 'P21', 'Q6581097']
ASK WHERE { resource:Q20070752 property:P21 resource:Q6581097 }
male Thomas Chabot
action is_in
entity male
action find
entity Thomas Chabot
relation gender
['Thomas Chabot', 'gender', 'male']
ASK WHERE { resource:Thomas_Chabot property:gender resource:male }
[]
common name
SYSTEM
YES
(Q20070752,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q20070752
relation P21
[ANSWER]
['Q20070752', 'P21', 'Q6581097']
ASK WHERE { resource:Q20070752 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Thomas Chabot
relation gender
['Thomas Chabot', 'gender', 'male']
ASK WHERE { resource:Thomas_Chabot property:gender resource:male }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581097
P106
Q502895
USER
Which person has the profession as that sex ?
action filter_type
action find_reverse
entity Q6581097
relation P106
type Q502895
SELECT DISTINCT ?j WHERE { ?j property:P106 resource:Q6581097 . ?j rdf:type ontology:Q502895 }
male
action filter_type
action find_reverse
entity male
relation occupation
type common name
SELECT DISTINCT ?j WHERE { ?j property:occupation resource:male . ?j rdf:type ontology:common_name }
[]
common name
Q24877298
SYSTEM
Antonín Straka
Q24877298
action filter_type
action find_reverse
entity Q6581097
relation P106
type Q502895
[ANSWER] has the profession as that sex
SELECT DISTINCT ?j WHERE { ?j property:P106 resource:Q6581097 . ?j rdf:type ontology:Q502895 }
Antonín Straka
Antonín Straka has the profession as that sex
Antonín Straka
action filter_type
action find_reverse
entity male
relation occupation
type common name
SELECT DISTINCT ?j WHERE { ?j property:occupation resource:male . ?j rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q6581072 Q6581097
P21
Q502895
USER
Which people have the gender as male and female ?
AND((c(Q502895),P21,Q6581097), (c(Q502895),P21,Q6581072))
action filter_type
action intersection
action find_reverse
entity Q6581097
relation P21
action find_reverse
entity Q6581072
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P21', 'Q6581097'], [{'concept': 'Q502895'}, 'P21', 'Q6581072']]}
SELECT DISTINCT ?w WHERE { ?w property:P21 resource:Q6581097 . ?w property:P21 resource:Q6581072 . ?w rdf:type ontology:Q502895 }
female male
action filter_type
action intersection
action find_reverse
entity male
relation gender
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'gender', 'male'], [{'concept': 'common name'}, 'gender', 'female']]}
SELECT DISTINCT ?w WHERE { ?w property:gender resource:male . ?w property:gender resource:female . ?w rdf:type ontology:common_name }
[]
common name
Q442804 Q22095108 Q17148031 Q20401379 Q5972494 Q2882250 Q22342662 Q23416861 Q11379959 Q22073991
SYSTEM
Some of them are Anna Grodzka, Taofik Adegbite, Maria Espinalt i Font, Hakima El Haite, Leeland Dayton Mooring, Jingjing Wang, Magdalena Mayr, Ivica Mavrenski, Kazue Itō, Saalumarada Thimmakka
Q12966459 Q17600942 Q3260705 Q5874237 Q21391750 Q17225819 Q5972494 Q16941580 Q16733519 Q11622868 Q6702791 Q10263785 Q6571041 Q16732132 Q24264223 Q20401379 Q20119921 Q2312612 Q16164967 Q242700 Q6555624 Q12586819 Q23698979 Q17628096 Q22342662 Q525066 Q9544977 Q503007 Q22280111 Q22102078 Q5482749 Q21392153 Q201204 Q10281088 Q442804 Q16767898 Q22570074 Q21601127 Q12403076 Q14432239 Q12734885 Q734662 Q24500675 Q24034956 Q19957341 Q6258596 Q22236117 Q22808784 Q11379959 Q6003690 Q24807469 Q21857402 Q21258362 Q4979792 Q11449790 Q22001922 Q3575012 Q3764762 Q7377573 Q20068820 Q6031433 Q21794041 Q6438624 Q25768293 Q19448005 Q21503040 Q17148031 Q11604340 Q17158335 Q11815936 Q17364527 Q22280435 Q15934058 Q18559837 Q11201210 Q25748324 Q459844 Q2379965 Q3291942 Q17621841 Q20980163 Q453573 Q11531266 Q4255661 Q22675675 Q528434 Q237726 Q74813 Q2668396 Q298423 Q22073991 Q503575 Q23416861 Q15807938 Q19357604 Q18049905 Q26921704 Q2882250 Q18346977 Q2939204 Q3809749 Q12685049 Q21033490 Q5856706 Q16165783 Q5569499 Q12613187 Q7849225 Q16582167 Q19543099 Q16865281 Q22095108 Q12872947 Q15433626
AND((c(Q502895),P21,Q6581097), (c(Q502895),P21,Q6581072))
action filter_type
action intersection
action find_reverse
entity Q6581097
relation P21
action find_reverse
entity Q6581072
relation P21
type Q502895
[ANSWERS] have the gender as male and female
{'AND': [[{'concept': 'Q502895'}, 'P21', 'Q6581097'], [{'concept': 'Q502895'}, 'P21', 'Q6581072']]}
SELECT DISTINCT ?w WHERE { ?w property:P21 resource:Q6581097 . ?w property:P21 resource:Q6581072 . ?w rdf:type ontology:Q502895 }
Kim Ju-yeong Gert Portael Louis-Marie Autissier Hom Nguyen George Mather Luer Hajime Hyakkoku Leeland Dayton Mooring Antonio Merayo Ali Nuhu Kodai Fujii Luli Bitri Dalmau IV de Rocabertí Diemut Theato Robin Mathews Milko Tokola Hakima El Haite Lee Parkhill Floris Meydam Ivan Almeida Naima Mora Hana Shezifi Gilgun Elmo Jankari Rafeef Ziadah Magdalena Mayr Liss Eriksson Lilly Wachowski Andreja Pejić Yengkhom Roma Letebrhan Haylay Gebreslasea Francis Wheatley Jian-Huan Yang Dana International Fenedy Masauvakalo Anna Grodzka Chanmi Elisabeth Ullmann Marina Lampraki-Plaka Ángel Martínez Ortega Benny Motzfeldt Maria-Magdalena Zaharescu Joan de Munchensi Amadeus Serafini Jaki Irvine Tinne De Caigny John Spaulding Colombe Marcasiano Annegret Kuhn Kazue Itō María Elena Orantes Kudirat Akhigbe Miska Humaloja Dominique Van Der Straeten Emma Josepha Sparre Terunobu Utsunomiya Suzanne Schulting Zdeněk Koubek Shamshad Begum Rudy Autio Lesya Nikityuk Matthew W. Taylor Jelizaveta Potapova Gaz Beadle Shagdaryn Bira Juan Illas y Vidal Kenneth Neil Maria Espinalt i Font Akira Yoneda Songhaye Petia Stawrewa Ángel Tejeda Sun Vandeth Matsudaira Yoshiko Mirabel Topham Asmik Grigorian K. T. Rama Rao Norah Al Faiz Thomas Beatie Marie-Joseph Charles des Acres de l'Aigle Marta Linares Engel Reimers Vicki Richter Miki Matsumoto Adolfine Therese Leander-Flodin Nikola Jakadofsky Daniele Hypólito Rosalba Carriera Mina Caputo Parinya Charoenphol Chelsea Manning Saalumarada Thimmakka Cesare Nebbia Ivica Mavrenski Elvire De Bruyn Hamda Khamis Stanisława Witekowa Jean-Marie Aleokol Mabieme Jingjing Wang Jan Norback Carlo Guasco Jaiyah Saelua Chew Mei Fun Silke Weitendorf Ingel Fallstedt America Sanchez Glenys Barton Lee Hye-jin Kim Ye-ri Jorge Garate Ionna Stephanopoli Choi Jung-moon Taofik Adegbite Frosso Kiaou Florence Randal Livesay
Anna Grodzka, Taofik Adegbite, Maria Espinalt i Font, Hakima El Haite, Leeland Dayton Mooring, Jingjing Wang, Magdalena Mayr, Ivica Mavrenski, Kazue Itō and Saalumarada Thimmakka have the gender as male and female
Anna Grodzka Taofik Adegbite Maria Espinalt i Font Hakima El Haite Leeland Dayton Mooring Jingjing Wang Magdalena Mayr Ivica Mavrenski Kazue Itō Saalumarada Thimmakka
action filter_type
action intersection
action find_reverse
entity male
relation gender
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'gender', 'male'], [{'concept': 'common name'}, 'gender', 'female']]}
SELECT DISTINCT ?w WHERE { ?w property:gender resource:male . ?w property:gender resource:female . ?w rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q39777
P1303
Q34379 Q502895
USER
Which musical instruments do approximately the same number of people know to play as maraca ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q39777
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { ?t rdf:type ontology:Q34379 . resource:Q39777 property:P1303 ?t } } . FILTER ( ?m = ?v ) . { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?m ) WHERE { ?s property:P1303 ?q . ?s rdf:type ontology:Q502895 . ?q rdf:type ontology:Q34379 } GROUP BY ?q } }
maraca
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity maraca
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { ?t rdf:type ontology:musical_instrument . resource:maraca property:instrument ?t } } . FILTER ( ?m = ?v ) . { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?m ) WHERE { ?s property:instrument ?q . ?s rdf:type ontology:common_name . ?q rdf:type ontology:musical_instrument } GROUP BY ?q } }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q80284 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q39777
relation P1303
type Q34379
[ANSWERS] approximately the same number of people know to play as maraca
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { ?t rdf:type ontology:Q34379 . resource:Q39777 property:P1303 ?t } } . FILTER ( ?m = ?v ) . { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?m ) WHERE { ?s property:P1303 ?q . ?s rdf:type ontology:Q502895 . ?q rdf:type ontology:Q34379 } GROUP BY ?q } }
viola lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
Davul, harpsichord and Wurlitzer electric piano approximately the same number of people know to play as maraca
davul harpsichord Wurlitzer electric piano
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity maraca
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { ?t rdf:type ontology:musical_instrument . resource:maraca property:instrument ?t } } . FILTER ( ?m = ?v ) . { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?m ) WHERE { ?s property:instrument ?q . ?s rdf:type ontology:common_name . ?q rdf:type ontology:musical_instrument } GROUP BY ?q } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q320341
P1303
Q34379 Q502895
USER
And also tell me about celesta?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q320341
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?j WHERE { FILTER ( ?f = ?k ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { resource:Q320341 property:P1303 ?g . ?g rdf:type ontology:Q34379 } } . { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?f ) WHERE { ?m property:P1303 ?j . ?j rdf:type ontology:Q34379 . ?m rdf:type ontology:Q502895 } GROUP BY ?j } }
celesta
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity celesta
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?j WHERE { FILTER ( ?f = ?k ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { resource:celesta property:instrument ?g . ?g rdf:type ontology:musical_instrument } } . { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?f ) WHERE { ?m property:instrument ?j . ?j rdf:type ontology:musical_instrument . ?m rdf:type ontology:common_name } GROUP BY ?j } }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q80284 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q320341
relation P1303
type Q34379
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?j WHERE { FILTER ( ?f = ?k ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { resource:Q320341 property:P1303 ?g . ?g rdf:type ontology:Q34379 } } . { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?f ) WHERE { ?m property:P1303 ?j . ?j rdf:type ontology:Q34379 . ?m rdf:type ontology:Q502895 } GROUP BY ?j } }
viola lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
davul harpsichord Wurlitzer electric piano
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity celesta
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?j WHERE { FILTER ( ?f = ?k ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { resource:celesta property:instrument ?g . ?g rdf:type ontology:musical_instrument } } . { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?f ) WHERE { ?m property:instrument ?j . ?j rdf:type ontology:musical_instrument . ?m rdf:type ontology:common_name } GROUP BY ?j } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q13828 Q22342662
P47 P27
Q1048835
USER
Which political territories are Magdalena Mayr an inhabitant of or are adjacent to Sant Pere de Torelló ?
OR((Q22342662,P27,c(Q1048835)), (Q13828,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q22342662
relation P27
action find
entity Q13828
relation P47
type Q1048835
{'OR': [['Q22342662', 'P27', {'concept': 'Q1048835'}], ['Q13828', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q22342662 property:P27 ?u } UNION { resource:Q13828 property:P47 ?u } } . ?u rdf:type ontology:Q1048835 }
Sant Pere de Torelló Magdalena Mayr
action filter_type
action union
action find
entity Magdalena Mayr
relation country of citizenship
action find
entity Sant Pere de Torelló
relation shares border with
type political territorial entity
{'OR': [['Magdalena Mayr', 'country of citizenship', {'concept': 'political territorial entity'}], ['Sant Pere de Torelló', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Magdalena_Mayr property:country_of_citizenship ?u } UNION { resource:Sant_Pere_de_Torelló property:shares_border_with ?u } } . ?u rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q13835 Q13837 Q13830 Q12710 Q13833 Q183 Q13856 Q13797 Q13854
SYSTEM
Santa Maria de Besora, L'Esquirol, Sant Quirze de Besora, La Vall d'en Bas, Sant Vicenç de Torelló, Germany, Vidrà, Orís, Torelló
Q13835 Q13837 Q13830 Q12710 Q13833 Q183 Q13856 Q13797 Q13854
OR((Q22342662,P27,c(Q1048835)), (Q13828,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q22342662
relation P27
action find
entity Q13828
relation P47
type Q1048835
[ANSWERS] are Magdalena Mayr an inhabitant of or are adjacent to Sant Pere de Torelló
{'OR': [['Q22342662', 'P27', {'concept': 'Q1048835'}], ['Q13828', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q22342662 property:P27 ?u } UNION { resource:Q13828 property:P47 ?u } } . ?u rdf:type ontology:Q1048835 }
Santa Maria de Besora L'Esquirol Sant Quirze de Besora La Vall d'en Bas Sant Vicenç de Torelló Germany Vidrà Orís Torelló
Santa Maria de Besora, L'Esquirol, Sant Quirze de Besora, La Vall d'en Bas, Sant Vicenç de Torelló, Germany, Vidrà, Orís and Torelló are Magdalena Mayr an inhabitant of or are adjacent to Sant Pere de Torelló
Santa Maria de Besora L'Esquirol Sant Quirze de Besora La Vall d'en Bas Sant Vicenç de Torelló Germany Vidrà Orís Torelló
action filter_type
action union
action find
entity Magdalena Mayr
relation country of citizenship
action find
entity Sant Pere de Torelló
relation shares border with
type political territorial entity
{'OR': [['Magdalena Mayr', 'country of citizenship', {'concept': 'political territorial entity'}], ['Sant Pere de Torelló', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Magdalena_Mayr property:country_of_citizenship ?u } UNION { resource:Sant_Pere_de_Torelló property:shares_border_with ?u } } . ?u rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P870
Q34379 Q838948 Q207628
USER
Which musical instruments were used in the composition of min number of works of art or musical compositions ?
(c(Q838948)|c(Q207628),P870,c(Q34379))
action argmin
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q838948
action find_reverse_tuple_counts
relation P870
type Q34379
type Q207628
[[{'concept': 'Q838948'}, {'concept': 'Q207628'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?o ) { SELECT DISTINCT ?c ( COUNT ( ?d ) AS ?b ) WHERE { ?d rdf:type ?e . VALUES ( ?e ) { ( ontology:Q838948 ) ( ontology:Q207628 ) } } GROUP BY ?c } } . { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?p ) WHERE { { ?t property:P870 ?x . ?t rdf:type ontology:Q838948 . ?x rdf:type ontology:Q34379 } UNION { ?t property:P870 ?x . ?x rdf:type ontology:Q34379 . ?t rdf:type ontology:Q207628 } } GROUP BY ?x } . FILTER ( ?p = ?o ) }
action argmin
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type work of art
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type musical composition
[[{'concept': 'work of art'}, {'concept': 'musical composition'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?o ) { SELECT DISTINCT ?c ( COUNT ( ?d ) AS ?b ) WHERE { ?d rdf:type ?e . VALUES ( ?e ) { ( ontology:work_of_art ) ( ontology:musical_composition ) } } GROUP BY ?c } } . { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?p ) WHERE { { ?t property:instrumentation ?x . ?t rdf:type ontology:work_of_art . ?x rdf:type ontology:musical_instrument } UNION { ?t property:instrumentation ?x . ?x rdf:type ontology:musical_instrument . ?t rdf:type ontology:musical_composition } } GROUP BY ?x } . FILTER ( ?p = ?o ) }
[]
musical instrument work of art musical composition
Q521151 Q213461 Q46185
SYSTEM
baryton, harmonium, bass guitar
Q213461 Q46185 Q845193 Q190172 Q189737 Q626035 Q521151 Q8338 Q320341 Q39777 Q11404
(c(Q838948)|c(Q207628),P870,c(Q34379))
action argmin
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q838948
action find_reverse_tuple_counts
relation P870
type Q34379
type Q207628
[ANSWERS] were used in the composition of min number of works of art or musical compositions
[[{'concept': 'Q838948'}, {'concept': 'Q207628'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?o ) { SELECT DISTINCT ?c ( COUNT ( ?d ) AS ?b ) WHERE { ?d rdf:type ?e . VALUES ( ?e ) { ( ontology:Q838948 ) ( ontology:Q207628 ) } } GROUP BY ?c } } . { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?p ) WHERE { { ?t property:P870 ?x . ?t rdf:type ontology:Q838948 . ?x rdf:type ontology:Q34379 } UNION { ?t property:P870 ?x . ?x rdf:type ontology:Q34379 . ?t rdf:type ontology:Q207628 } } GROUP BY ?x } . FILTER ( ?p = ?o ) }
harmonium bass guitar xylorimba cymbal timpani glockenspiel baryton trumpet celesta maraca drum
Baryton, harmonium and bass guitar were used in the composition of min number of works of art or musical compositions
baryton harmonium bass guitar
action argmin
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type work of art
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type musical composition
[[{'concept': 'work of art'}, {'concept': 'musical composition'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?o ) { SELECT DISTINCT ?c ( COUNT ( ?d ) AS ?b ) WHERE { ?d rdf:type ?e . VALUES ( ?e ) { ( ontology:work_of_art ) ( ontology:musical_composition ) } } GROUP BY ?c } } . { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?p ) WHERE { { ?t property:instrumentation ?x . ?t rdf:type ontology:work_of_art . ?x rdf:type ontology:musical_instrument } UNION { ?t property:instrumentation ?x . ?x rdf:type ontology:musical_instrument . ?t rdf:type ontology:musical_composition } } GROUP BY ?x } . FILTER ( ?p = ?o ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q33999 Q1178361
P106 P1303
Q502895
USER
Which people can play davul and have the profession as actor ?
AND((c(Q502895),P1303,Q1178361), (c(Q502895),P106,Q33999))
action filter_type
action intersection
action find_reverse
entity Q1178361
relation P1303
action find_reverse
entity Q33999
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P1303', 'Q1178361'], [{'concept': 'Q502895'}, 'P106', 'Q33999']]}
SELECT DISTINCT ?l WHERE { ?l property:P1303 resource:Q1178361 . ?l property:P106 resource:Q33999 . ?l rdf:type ontology:Q502895 }
actor davul
action filter_type
action intersection
action find_reverse
entity davul
relation instrument
action find_reverse
entity actor
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'instrument', 'davul'], [{'concept': 'common name'}, 'occupation', 'actor']]}
SELECT DISTINCT ?l WHERE { ?l property:instrument resource:davul . ?l property:occupation resource:actor . ?l rdf:type ontology:common_name }
[]
common name
Q343394
SYSTEM
İbrahim Tatlıses
Q343394
AND((c(Q502895),P1303,Q1178361), (c(Q502895),P106,Q33999))
action filter_type
action intersection
action find_reverse
entity Q1178361
relation P1303
action find_reverse
entity Q33999
relation P106
type Q502895
[ANSWER] can play davul and have the profession as actor
{'AND': [[{'concept': 'Q502895'}, 'P1303', 'Q1178361'], [{'concept': 'Q502895'}, 'P106', 'Q33999']]}
SELECT DISTINCT ?l WHERE { ?l property:P1303 resource:Q1178361 . ?l property:P106 resource:Q33999 . ?l rdf:type ontology:Q502895 }
İbrahim Tatlıses
İbrahim Tatlıses can play davul and have the profession as actor
İbrahim Tatlıses
action filter_type
action intersection
action find_reverse
entity davul
relation instrument
action find_reverse
entity actor
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'instrument', 'davul'], [{'concept': 'common name'}, 'occupation', 'actor']]}
SELECT DISTINCT ?l WHERE { ?l property:instrument resource:davul . ?l property:occupation resource:actor . ?l rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5942706
Q502895
USER
And how about Hungargunn Bear It'n Mind?
(Q5942706,P106,c(Q502895))
action filter_type
action find
entity Q5942706
relation P106
type Q502895
['Q5942706', 'P106', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q5942706 property:P106 ?b . ?b rdf:type ontology:Q502895 }
Hungargunn Bear It'n Mind
action filter_type
action find
entity Hungargunn Bear It'n Mind
relation occupation
type common name
["Hungargunn Bear It'n Mind", 'occupation', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Hungargunn_Bear_It'n_Mind property:occupation ?b . ?b rdf:type ontology:common_name }
[]
common name
Q12008694
SYSTEM
Show dog
Q12008694
(Q5942706,P106,c(Q502895))
action filter_type
action find
entity Q5942706
relation P106
type Q502895
[ANSWER]
['Q5942706', 'P106', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q5942706 property:P106 ?b . ?b rdf:type ontology:Q502895 }
Show dog
Show dog
action filter_type
action find
entity Hungargunn Bear It'n Mind
relation occupation
type common name
["Hungargunn Bear It'n Mind", 'occupation', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Hungargunn_Bear_It'n_Mind property:occupation ?b . ?b rdf:type ontology:common_name }
[]