Simple Question (Direct)
Simple Question
Q7507853
P20
Q56061
USER
Where did Sid Moffat expire ?
(Q7507853,P20,c(Q56061))
action filter_type
action find
entity Q7507853
relation P20
type Q56061
['Q7507853', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q56061 . resource:Q7507853 property:P20 ?m }
Sid Moffat
action filter_type
action find
entity Sid Moffat
relation place of death
type administrative territorial entity
['Sid Moffat', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:administrative_territorial_entity . resource:Sid_Moffat property:place_of_death ?m }
[]
administrative territorial entity
Q868637
SYSTEM
Macclesfield
Q868637
(Q7507853,P20,c(Q56061))
action filter_type
action find
entity Q7507853
relation P20
type Q56061
[ANSWER]
['Q7507853', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q56061 . resource:Q7507853 property:P20 ?m }
Macclesfield
Macclesfield
action filter_type
action find
entity Sid Moffat
relation place of death
type administrative territorial entity
['Sid Moffat', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:administrative_territorial_entity . resource:Sid_Moffat property:place_of_death ?m }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7507853
P106
Q12737077
USER
What is the job of that person ?
(Q868637,P106,c(Q12737077))
action filter_type
action find
entity Q7507853
relation P106
type Q12737077
['Q868637', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q7507853 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
Sid Moffat
action filter_type
action find
entity Sid Moffat
relation occupation
type occupation
['Macclesfield', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Sid_Moffat property:occupation ?z . ?z rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q868637,P106,c(Q12737077))
action filter_type
action find
entity Q7507853
relation P106
type Q12737077
[ANSWER]
['Q868637', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q7507853 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
association football player
association football player
action filter_type
action find
entity Sid Moffat
relation occupation
type occupation
['Macclesfield', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Sid_Moffat property:occupation ?z . ?z rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7507853
P641
Q349
USER
What was the sport that Sid Moffat was a part of ?
(Q7507853,P641,c(Q349))
action filter_type
action find
entity Q7507853
relation P641
type Q349
['Q7507853', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?o WHERE { resource:Q7507853 property:P641 ?o . ?o rdf:type ontology:Q349 }
Sid Moffat
action filter_type
action find
entity Sid Moffat
relation sport
type sport
['Sid Moffat', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?o WHERE { resource:Sid_Moffat property:sport ?o . ?o rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q7507853,P641,c(Q349))
action filter_type
action find
entity Q7507853
relation P641
type Q349
[ANSWER]
['Q7507853', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?o WHERE { resource:Q7507853 property:P641 ?o . ?o rdf:type ontology:Q349 }
association football
association football
action filter_type
action find
entity Sid Moffat
relation sport
type sport
['Sid Moffat', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?o WHERE { resource:Sid_Moffat property:sport ?o . ?o rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7507853
P21
Q290
USER
Which sex does that person have ?
(Q2736,P21,c(Q290))
action filter_type
action find
entity Q7507853
relation P21
type Q290
['Q2736', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q7507853 property:P21 ?r . ?r rdf:type ontology:Q290 }
Sid Moffat
action filter_type
action find
entity Sid Moffat
relation gender
type sex
['association football', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Sid_Moffat property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2736,P21,c(Q290))
action filter_type
action find
entity Q7507853
relation P21
type Q290
[ANSWER]
['Q2736', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q7507853 property:P21 ?r . ?r rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Sid Moffat
relation gender
type sex
['association football', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Sid_Moffat property:gender ?r . ?r rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q6581072 Q6581097
P21
Q502895
USER
Which people have male and female as the sex ?
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 ?t WHERE { ?t property:P21 resource:Q6581097 . ?t property:P21 resource:Q6581072 . ?t 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 ?t WHERE { ?t property:gender resource:male . ?t property:gender resource:female . ?t rdf:type ontology:common_name }
[]
common name
Q12734885 Q6555624 Q525066 Q25748324 Q503007 Q11379959 Q18049905 Q16767898 Q22236117 Q16941580
SYSTEM
Some of them are Maria-Magdalena Zaharescu, Hana Shezifi, Liss Eriksson, K. T. Rama Rao, Andreja Pejić, Kazue Itō, Stanisława Witekowa, Chanmi, Colombe Marcasiano, Antonio Merayo
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]
{'AND': [[{'concept': 'Q502895'}, 'P21', 'Q6581097'], [{'concept': 'Q502895'}, 'P21', 'Q6581072']]}
SELECT DISTINCT ?t WHERE { ?t property:P21 resource:Q6581097 . ?t property:P21 resource:Q6581072 . ?t 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
Maria-Magdalena Zaharescu Hana Shezifi Liss Eriksson K. T. Rama Rao Andreja Pejić Kazue Itō Stanisława Witekowa Chanmi Colombe Marcasiano Antonio Merayo
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 ?t WHERE { ?t property:gender resource:male . ?t property:gender resource:female . ?t rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q12734885 Q6555624 Q525066 Q25748324 Q503007 Q11379959 Q18049905 Q16767898 Q22236117 Q16941580
P21
Q290
USER
Which sexes do those people possess ?
(Q12734885,P21,c(Q290)) (Q6555624,P21,c(Q290)) (Q525066,P21,c(Q290)) (Q25748324,P21,c(Q290)) (Q503007,P21,c(Q290)) (Q11379959,P21,c(Q290)) (Q18049905,P21,c(Q290)) (Q16767898,P21,c(Q290)) (Q22236117,P21,c(Q290)) (Q16941580,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
['Q12734885', 'P21', {'concept': 'Q290'}] ['Q6555624', 'P21', {'concept': 'Q290'}] ['Q525066', 'P21', {'concept': 'Q290'}] ['Q25748324', 'P21', {'concept': 'Q290'}] ['Q503007', 'P21', {'concept': 'Q290'}] ['Q11379959', 'P21', {'concept': 'Q290'}] ['Q18049905', 'P21', {'concept': 'Q290'}] ['Q16767898', 'P21', {'concept': 'Q290'}] ['Q22236117', 'P21', {'concept': 'Q290'}] ['Q16941580', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { ?x property:P21 ?q . VALUES ( ?x ) { ( resource:Q12966459 ) ( resource:Q17600942 ) ( resource:Q3260705 ) } . ?q rdf:type ontology:Q290 }
Maria-Magdalena Zaharescu Hana Shezifi Liss Eriksson K. T. Rama Rao Andreja Pejić Kazue Itō Stanisława Witekowa Chanmi Colombe Marcasiano Antonio Merayo
action filter_type
action find
entity prev_answer
relation gender
type sex
['Maria-Magdalena Zaharescu', 'gender', {'concept': 'sex'}] ['Hana Shezifi', 'gender', {'concept': 'sex'}] ['Liss Eriksson', 'gender', {'concept': 'sex'}] ['K. T. Rama Rao', 'gender', {'concept': 'sex'}] ['Andreja Pejić', 'gender', {'concept': 'sex'}] ['Kazue Itō', 'gender', {'concept': 'sex'}] ['Stanisława Witekowa', 'gender', {'concept': 'sex'}] ['Chanmi', 'gender', {'concept': 'sex'}] ['Colombe Marcasiano', 'gender', {'concept': 'sex'}] ['Antonio Merayo', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { ?x property:gender ?q . VALUES ( ?x ) { ( resource:Kim_Ju-yeong ) ( resource:Gert_Portael ) ( resource:Louis-Marie_Autissier ) } . ?q rdf:type ontology:sex }
[]
sex
Q6581097 Q6581072 Q6581097
SYSTEM
male for 1st, 3rd, female for 2nd
Q6581097 Q6581072 Q6581097 Q6581072 Q6581097 Q6581072 Q6581097 Q6581072 Q6581097 Q6581072 Q6581097 Q6581072 Q6581097 Q6581072 Q6581097 Q6581072 Q6581097 Q6581072 Q6581097 Q6581072
(Q12734885,P21,c(Q290)) (Q6555624,P21,c(Q290)) (Q525066,P21,c(Q290)) (Q25748324,P21,c(Q290)) (Q503007,P21,c(Q290)) (Q11379959,P21,c(Q290)) (Q18049905,P21,c(Q290)) (Q16767898,P21,c(Q290)) (Q22236117,P21,c(Q290)) (Q16941580,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
[ANSWERS]
['Q12734885', 'P21', {'concept': 'Q290'}] ['Q6555624', 'P21', {'concept': 'Q290'}] ['Q525066', 'P21', {'concept': 'Q290'}] ['Q25748324', 'P21', {'concept': 'Q290'}] ['Q503007', 'P21', {'concept': 'Q290'}] ['Q11379959', 'P21', {'concept': 'Q290'}] ['Q18049905', 'P21', {'concept': 'Q290'}] ['Q16767898', 'P21', {'concept': 'Q290'}] ['Q22236117', 'P21', {'concept': 'Q290'}] ['Q16941580', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { ?x property:P21 ?q . VALUES ( ?x ) { ( resource:Q12966459 ) ( resource:Q17600942 ) ( resource:Q3260705 ) } . ?q rdf:type ontology:Q290 }
male female male female male female male female male female male female male female male female male female male female
male female male
action filter_type
action find
entity prev_answer
relation gender
type sex
['Maria-Magdalena Zaharescu', 'gender', {'concept': 'sex'}] ['Hana Shezifi', 'gender', {'concept': 'sex'}] ['Liss Eriksson', 'gender', {'concept': 'sex'}] ['K. T. Rama Rao', 'gender', {'concept': 'sex'}] ['Andreja Pejić', 'gender', {'concept': 'sex'}] ['Kazue Itō', 'gender', {'concept': 'sex'}] ['Stanisława Witekowa', 'gender', {'concept': 'sex'}] ['Chanmi', 'gender', {'concept': 'sex'}] ['Colombe Marcasiano', 'gender', {'concept': 'sex'}] ['Antonio Merayo', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { ?x property:gender ?q . VALUES ( ?x ) { ( resource:Kim_Ju-yeong ) ( resource:Gert_Portael ) ( resource:Louis-Marie_Autissier ) } . ?q rdf:type ontology:sex }
[]
Clarification
Simple Question|Single Entity|Indirect
Q6581097
P69
Q502895
USER
Who is an alumni of that sex ?
(c(Q502895),P69,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P69
type Q502895
[{'concept': 'Q502895'}, 'P69', 'Q6581097']
SELECT DISTINCT ?j WHERE { ?j property:P69 resource:Q6581097 . ?j rdf:type ontology:Q502895 }
male
action filter_type
action find_reverse
entity male
relation educated at
type common name
[{'concept': 'common name'}, 'educated at', 'male']
SELECT DISTINCT ?j WHERE { ?j property:educated_at resource:male . ?j rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q6581097
SYSTEM
Did you mean male ?
Q6581097 Q6581072 Q6581097
(c(Q502895),P69,Q6581097) (c(Q502895),P69,Q6581072) (c(Q502895),P69,Q6581097)
[ANSWER]
[{'concept': 'Q502895'}, 'P69', 'Q6581097'] [{'concept': 'Q502895'}, 'P69', 'Q6581072'] [{'concept': 'Q502895'}, 'P69', 'Q6581097']
SELECT DISTINCT ?j WHERE { ?j property:P69 resource:Q6581097 . ?j rdf:type ontology:Q502895 }
male female male
Did you mean male ?
male
[{'concept': 'common name'}, 'educated at', 'male'] [{'concept': 'common name'}, 'educated at', 'female'] [{'concept': 'common name'}, 'educated at', 'male']
SELECT DISTINCT ?j WHERE { ?j property:educated_at resource:male . ?j rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P69,Q6581097)
[{'concept': 'Q502895'}, 'P69', 'Q6581097']
[{'concept': 'common name'}, 'educated at', 'male']
[]
Q4662307
SYSTEM
Aaron Parchem
Q4662307
(c(Q502895),P69,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P69
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P69', 'Q6581097']
SELECT DISTINCT ?j WHERE { ?j property:P69 resource:Q6581097 . ?j rdf:type ontology:Q502895 }
Aaron Parchem
Aaron Parchem
action filter_type
action find_reverse
entity male
relation educated at
type common name
[{'concept': 'common name'}, 'educated at', 'male']
SELECT DISTINCT ?j WHERE { ?j property:educated_at resource:male . ?j rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q626035
P1303
Q34379 Q502895
USER
Which musical instruments do less number of people know to play than glockenspiel ?
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q626035
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?c ) WHERE { ?e property:P1303 ?s . ?e rdf:type ontology:Q502895 . ?s rdf:type ontology:Q34379 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) WHERE { ?i property:P1303 resource:Q626035 . ?i rdf:type ontology:Q502895 } } . FILTER ( ?c < ?j ) }
glockenspiel
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity glockenspiel
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?c ) WHERE { ?e property:instrument ?s . ?e rdf:type ontology:common_name . ?s rdf:type ontology:musical_instrument } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) WHERE { ?i property:instrument resource:glockenspiel . ?i rdf:type ontology:common_name } } . FILTER ( ?c < ?j ) }
[]
musical instrument common name
Q1178361 Q1759986 Q816793
SYSTEM
davul, Wurlitzer electric piano, Bendir
Q201129 Q424017 Q890073 Q1178361 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q182718 Q490054 Q873588 Q593995 Q1327500 Q1879664 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q1024685 Q816793 Q862501 Q244976 Q537750 Q1179017 Q320341 Q1300012 Q748455 Q669370 Q290951 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q626035
relation P1303
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?c ) WHERE { ?e property:P1303 ?s . ?e rdf:type ontology:Q502895 . ?s rdf:type ontology:Q34379 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) WHERE { ?i property:P1303 resource:Q626035 . ?i rdf:type ontology:Q502895 } } . FILTER ( ?c < ?j ) }
lyre acoustic bass guitar Body percussion davul Temple block Irish bouzouki maraca tonbak Twelve-string guitar Nyckelharpa Ondioline Jinghu player piano electronic musical instrument spoon Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cabasa Bendir ondes Martenot bodhrán Djembe Daxophone celesta toy piano cajón gusle Kamancheh Hardanger fiddle transverse flute baritone horn morin khuur Timbales wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar Kayamb Paraguayan harp
davul Wurlitzer electric piano Bendir
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity glockenspiel
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?c ) WHERE { ?e property:instrument ?s . ?e rdf:type ontology:common_name . ?s rdf:type ontology:musical_instrument } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) WHERE { ?i property:instrument resource:glockenspiel . ?i rdf:type ontology:common_name } } . FILTER ( ?c < ?j ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments do min number of people know to play ?
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?b ) { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?q ) WHERE { ?v property:P1303 ?z . ?z rdf:type ontology:Q34379 . ?v rdf:type ontology:Q502895 } GROUP BY ?z } } . { SELECT DISTINCT ?r ( COUNT ( ?m ) AS ?u ) WHERE { ?m property:P1303 ?r . ?r rdf:type ontology:Q34379 . ?m rdf:type ontology:Q502895 } GROUP BY ?r } . FILTER ( ?u = ?b ) }
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?b ) { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?q ) WHERE { ?v property:instrument ?z . ?z rdf:type ontology:musical_instrument . ?v rdf:type ontology:common_name } GROUP BY ?z } } . { SELECT DISTINCT ?r ( COUNT ( ?m ) AS ?u ) WHERE { ?m property:instrument ?r . ?r rdf:type ontology:musical_instrument . ?m rdf:type ontology:common_name } GROUP BY ?r } . FILTER ( ?u = ?b ) }
[]
musical instrument common name
Q1879664 Q748455 Q173453
SYSTEM
spoon, cajón, wind instrument
Q1879664 Q748455 Q173453
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?b ) { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?q ) WHERE { ?v property:P1303 ?z . ?z rdf:type ontology:Q34379 . ?v rdf:type ontology:Q502895 } GROUP BY ?z } } . { SELECT DISTINCT ?r ( COUNT ( ?m ) AS ?u ) WHERE { ?m property:P1303 ?r . ?r rdf:type ontology:Q34379 . ?m rdf:type ontology:Q502895 } GROUP BY ?r } . FILTER ( ?u = ?b ) }
spoon cajón wind instrument
spoon cajón wind instrument
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?b ) { SELECT DISTINCT ?z ( COUNT ( ?v ) AS ?q ) WHERE { ?v property:instrument ?z . ?z rdf:type ontology:musical_instrument . ?v rdf:type ontology:common_name } GROUP BY ?z } } . { SELECT DISTINCT ?r ( COUNT ( ?m ) AS ?u ) WHERE { ?m property:instrument ?r . ?r rdf:type ontology:musical_instrument . ?m rdf:type ontology:common_name } GROUP BY ?r } . FILTER ( ?u = ?b ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q8355
P870
Q34379 Q838948 Q862597
USER
How many musical instruments are used in lesser number of works of art or musical forms than violin ?
(c(Q838948)|c(Q862597),P870,c(Q34379))
action count
action less
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q838948
action find_reverse_tuple_counts
relation P870
type Q34379
type Q862597
action count
action filter_multi_types
action find_reverse
entity Q8355
relation P870
type Q838948
type Q862597
[[{'concept': 'Q838948'}, {'concept': 'Q862597'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?c ) WHERE { VALUES ( ?n ) { ( ontology:Q838948 ) ( ontology:Q862597 ) } . ?t rdf:type ?n } GROUP BY ?u } . FILTER ( ?c < ?l ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { ?p property:P870 resource:Q8355 . { { ?p rdf:type ontology:Q862597 } UNION { ?p rdf:type ontology:Q838948 } } } } }
violin
action count
action less
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 form
action count
action filter_multi_types
action find_reverse
entity violin
relation instrumentation
type work of art
type musical form
[[{'concept': 'work of art'}, {'concept': 'musical form'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?c ) WHERE { VALUES ( ?n ) { ( ontology:work_of_art ) ( ontology:musical_form ) } . ?t rdf:type ?n } GROUP BY ?u } . FILTER ( ?c < ?l ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { ?p property:instrumentation resource:violin . { { ?p rdf:type ontology:musical_form } UNION { ?p rdf:type ontology:work_of_art } } } } }
[]
musical instrument work of art musical form
SYSTEM
13
Q80284 Q213461 Q46185 Q845193 Q190172 Q189737 Q626035 Q521151 Q8338 Q320341 Q39777 Q11404 Q206987
(c(Q838948)|c(Q862597),P870,c(Q34379))
action count
action less
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q838948
action find_reverse_tuple_counts
relation P870
type Q34379
type Q862597
action count
action filter_multi_types
action find_reverse
entity Q8355
relation P870
type Q838948
type Q862597
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q862597'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?c ) WHERE { VALUES ( ?n ) { ( ontology:Q838948 ) ( ontology:Q862597 ) } . ?t rdf:type ?n } GROUP BY ?u } . FILTER ( ?c < ?l ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { ?p property:P870 resource:Q8355 . { { ?p rdf:type ontology:Q862597 } UNION { ?p rdf:type ontology:Q838948 } } } } }
viola harmonium bass guitar xylorimba cymbal timpani glockenspiel baryton trumpet celesta maraca drum vibraphone
13
action count
action less
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 form
action count
action filter_multi_types
action find_reverse
entity violin
relation instrumentation
type work of art
type musical form
[[{'concept': 'work of art'}, {'concept': 'musical form'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?c ) WHERE { VALUES ( ?n ) { ( ontology:work_of_art ) ( ontology:musical_form ) } . ?t rdf:type ?n } GROUP BY ?u } . FILTER ( ?c < ?l ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { ?p property:instrumentation resource:violin . { { ?p rdf:type ontology:musical_form } UNION { ?p rdf:type ontology:work_of_art } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q81982
P870
Q34379 Q838948 Q862597
USER
And what about harpsichord?
(c(Q838948)|c(Q862597),P870,c(Q34379))
action count
action less
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q838948
action find_reverse_tuple_counts
relation P870
type Q34379
type Q862597
action count
action filter_multi_types
action find_reverse
entity Q81982
relation P870
type Q838948
type Q862597
[[{'concept': 'Q838948'}, {'concept': 'Q862597'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?e ) WHERE { { ?s property:P870 ?q . ?q rdf:type ontology:Q34379 . ?s rdf:type ontology:Q838948 } UNION { ?s property:P870 ?q . ?q rdf:type ontology:Q34379 . ?s rdf:type ontology:Q862597 } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { ?p property:P870 resource:Q81982 . { ?p rdf:type ?o . VALUES ( ?o ) { ( ontology:Q862597 ) ( ontology:Q838948 ) } } } } . FILTER ( ?e < ?z ) }
harpsichord
action count
action less
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 form
action count
action filter_multi_types
action find_reverse
entity harpsichord
relation instrumentation
type work of art
type musical form
[[{'concept': 'work of art'}, {'concept': 'musical form'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?e ) WHERE { { ?s property:instrumentation ?q . ?q rdf:type ontology:musical_instrument . ?s rdf:type ontology:work_of_art } UNION { ?s property:instrumentation ?q . ?q rdf:type ontology:musical_instrument . ?s rdf:type ontology:musical_form } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { ?p property:instrumentation resource:harpsichord . { ?p rdf:type ?o . VALUES ( ?o ) { ( ontology:musical_form ) ( ontology:work_of_art ) } } } } . FILTER ( ?e < ?z ) }
[]
musical instrument work of art musical form
SYSTEM
15
Q80284 Q213461 Q46185 Q845193 Q190172 Q189737 Q626035 Q593995 Q521151 Q8338 Q320341 Q39777 Q8355 Q11404 Q206987
(c(Q838948)|c(Q862597),P870,c(Q34379))
action count
action less
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q838948
action find_reverse_tuple_counts
relation P870
type Q34379
type Q862597
action count
action filter_multi_types
action find_reverse
entity Q81982
relation P870
type Q838948
type Q862597
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q862597'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?e ) WHERE { { ?s property:P870 ?q . ?q rdf:type ontology:Q34379 . ?s rdf:type ontology:Q838948 } UNION { ?s property:P870 ?q . ?q rdf:type ontology:Q34379 . ?s rdf:type ontology:Q862597 } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { ?p property:P870 resource:Q81982 . { ?p rdf:type ?o . VALUES ( ?o ) { ( ontology:Q862597 ) ( ontology:Q838948 ) } } } } . FILTER ( ?e < ?z ) }
viola harmonium bass guitar xylorimba cymbal timpani glockenspiel player piano baryton trumpet celesta maraca violin drum vibraphone
15
action count
action less
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 form
action count
action filter_multi_types
action find_reverse
entity harpsichord
relation instrumentation
type work of art
type musical form
[[{'concept': 'work of art'}, {'concept': 'musical form'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?e ) WHERE { { ?s property:instrumentation ?q . ?q rdf:type ontology:musical_instrument . ?s rdf:type ontology:work_of_art } UNION { ?s property:instrumentation ?q . ?q rdf:type ontology:musical_instrument . ?s rdf:type ontology:musical_form } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { ?p property:instrumentation resource:harpsichord . { ?p rdf:type ?o . VALUES ( ?o ) { ( ontology:musical_form ) ( ontology:work_of_art ) } } } } . FILTER ( ?e < ?z ) }
[]