Simple Question (Direct)
Simple Question
Q210445
P7
Q502895
USER
Which people are the brothers of Al-Musta'in ?
(Q210445,P7,c(Q502895))
action filter_type
action find
entity Q210445
relation P7
type Q502895
['Q210445', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q502895 . resource:Q210445 property:P7 ?c }
Al-Musta'in
action filter_type
action find
entity Al-Musta'in
relation brother
type common name
["Al-Musta'in", 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:common_name . resource:Al-Musta'in property:brother ?c }
[]
common name
Q210497 Q210717 Q210614
SYSTEM
Al-Mustakfi II, Al-Qa'im, Al-Mustanjid
Q210497 Q210717 Q210614 Q210713
(Q210445,P7,c(Q502895))
action filter_type
action find
entity Q210445
relation P7
type Q502895
[ANSWERS] are the brothers of Al-Musta'in
['Q210445', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q502895 . resource:Q210445 property:P7 ?c }
Al-Mustakfi II Al-Qa'im Al-Mustanjid Al-Mu'tadid II
Al-Mustakfi II, Al-Qa'im and Al-Mustanjid are the brothers of Al-Musta'in
Al-Mustakfi II Al-Qa'im Al-Mustanjid
action filter_type
action find
entity Al-Musta'in
relation brother
type common name
["Al-Musta'in", 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:common_name . resource:Al-Musta'in property:brother ?c }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q210497 Q210717 Q210614
P7
Q502895
USER
Who have those ones as their brother ?
(Q210497,P7,c(Q502895)) (Q210717,P7,c(Q502895)) (Q210614,P7,c(Q502895))
action filter_type
action find
entity prev_answer
relation P7
type Q502895
['Q210497', 'P7', {'concept': 'Q502895'}] ['Q210717', 'P7', {'concept': 'Q502895'}] ['Q210614', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . ?y property:P7 ?d . VALUES ( ?y ) { ( resource:Q210497 ) ( resource:Q210717 ) ( resource:Q210614 ) } }
Al-Mustakfi II Al-Qa'im Al-Mustanjid
action filter_type
action find
entity prev_answer
relation brother
type common name
['Al-Mustakfi II', 'brother', {'concept': 'common name'}] ["Al-Qa'im", 'brother', {'concept': 'common name'}] ['Al-Mustanjid', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . ?y property:brother ?d . VALUES ( ?y ) { ( resource:Al-Mustakfi_II ) ( resource:Al-Qa'im ) ( resource:Al-Mustanjid ) } }
[]
common name
Q210445 Q210445 Q210445
SYSTEM
Al-Musta'in
Q210445 Q210717 Q210614 Q210713 Q210445 Q210497 Q210614 Q210713 Q210445 Q210497 Q210717 Q210713
(Q210497,P7,c(Q502895)) (Q210717,P7,c(Q502895)) (Q210614,P7,c(Q502895))
action filter_type
action find
entity prev_answer
relation P7
type Q502895
[ANSWER], [ANSWER] and [ANSWER] have those ones as their brother
['Q210497', 'P7', {'concept': 'Q502895'}] ['Q210717', 'P7', {'concept': 'Q502895'}] ['Q210614', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . ?y property:P7 ?d . VALUES ( ?y ) { ( resource:Q210497 ) ( resource:Q210717 ) ( resource:Q210614 ) } }
Al-Musta'in Al-Qa'im Al-Mustanjid Al-Mu'tadid II Al-Musta'in Al-Mustakfi II Al-Mustanjid Al-Mu'tadid II Al-Musta'in Al-Mustakfi II Al-Qa'im Al-Mu'tadid II
Al-Musta'in, Al-Musta'in and Al-Musta'in have those ones as their brother
Al-Musta'in Al-Musta'in Al-Musta'in
action filter_type
action find
entity prev_answer
relation brother
type common name
['Al-Mustakfi II', 'brother', {'concept': 'common name'}] ["Al-Qa'im", 'brother', {'concept': 'common name'}] ['Al-Mustanjid', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . ?y property:brother ?d . VALUES ( ?y ) { ( resource:Al-Mustakfi_II ) ( resource:Al-Qa'im ) ( resource:Al-Mustanjid ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q210497
P40
Q502895
USER
Which person has Al-Mustakfi II as a child ?
(c(Q502895),P40,Q210497)
action filter_type
action find_reverse
entity Q210497
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q210497']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P40 resource:Q210497 }
Al-Mustakfi II
action filter_type
action find_reverse
entity Al-Mustakfi II
relation child
type common name
[{'concept': 'common name'}, 'child', 'Al-Mustakfi II']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:child resource:Al-Mustakfi_II }
[]
common name
Q198038
SYSTEM
Al-Mutawakkil I
Q198038
(c(Q502895),P40,Q210497)
action filter_type
action find_reverse
entity Q210497
relation P40
type Q502895
[ANSWER] has Al-Mustakfi II as a child
[{'concept': 'Q502895'}, 'P40', 'Q210497']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P40 resource:Q210497 }
Al-Mutawakkil I
Al-Mutawakkil I has Al-Mustakfi II as a child
Al-Mutawakkil I
action filter_type
action find_reverse
entity Al-Mustakfi II
relation child
type common name
[{'concept': 'common name'}, 'child', 'Al-Mustakfi II']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:child resource:Al-Mustakfi_II }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q198038
P22
Q502895
USER
Who was the dad of that one ?
(Q198038,P22,c(Q502895))
action filter_type
action find
entity Q198038
relation P22
type Q502895
['Q198038', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q198038 property:P22 ?t . ?t rdf:type ontology:Q502895 }
Al-Mutawakkil I
action filter_type
action find
entity Al-Mutawakkil I
relation father
type common name
['Al-Mutawakkil I', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Al-Mutawakkil_I property:father ?t . ?t rdf:type ontology:common_name }
[]
common name
Q198002
SYSTEM
Al-Mu'tadid I
Q198002
(Q198038,P22,c(Q502895))
action filter_type
action find
entity Q198038
relation P22
type Q502895
The dad of that one was ' [ANSWER]
['Q198038', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q198038 property:P22 ?t . ?t rdf:type ontology:Q502895 }
Al-Mu'tadid I
The dad of that one was ' Al-Mu'tadid I
Al-Mu'tadid I
action filter_type
action find
entity Al-Mutawakkil I
relation father
type common name
['Al-Mutawakkil I', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Al-Mutawakkil_I property:father ?t . ?t rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q201129
P1303
Q34379 Q502895
USER
How many musical instruments can approximately the same number of people perform with as lyre ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q201129
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?l ) AS ?b ) WHERE { ?p rdf:type ontology:Q34379 . ?l rdf:type ontology:Q502895 . ?l property:P1303 ?p } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { resource:Q201129 property:P1303 ?d . ?d rdf:type ontology:Q34379 } } . FILTER ( ?b = ?n ) }
lyre
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity lyre
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?l ) AS ?b ) WHERE { ?p rdf:type ontology:musical_instrument . ?l rdf:type ontology:common_name . ?l property:instrument ?p } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { resource:lyre property:instrument ?d . ?d rdf:type ontology:musical_instrument } } . FILTER ( ?b = ?n ) }
[]
musical instrument common name
SYSTEM
60
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 count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q201129
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?l ) AS ?b ) WHERE { ?p rdf:type ontology:Q34379 . ?l rdf:type ontology:Q502895 . ?l property:P1303 ?p } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { resource:Q201129 property:P1303 ?d . ?d rdf:type ontology:Q34379 } } . FILTER ( ?b = ?n ) }
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
60
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity lyre
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?l ) AS ?b ) WHERE { ?p rdf:type ontology:musical_instrument . ?l rdf:type ontology:common_name . ?l property:instrument ?p } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { resource:lyre property:instrument ?d . ?d rdf:type ontology:musical_instrument } } . FILTER ( ?b = ?n ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q3574843
P1303
Q34379 Q502895
USER
And what about tonbak?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q3574843
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?n ) AS ?c ) WHERE { ?n property:P1303 ?a . ?n rdf:type ontology:Q502895 . ?a rdf:type ontology:Q34379 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { resource:Q3574843 property:P1303 ?t . ?t rdf:type ontology:Q34379 } } . FILTER ( ?c = ?b ) }
tonbak
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity tonbak
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?n ) AS ?c ) WHERE { ?n property:instrument ?a . ?n rdf:type ontology:common_name . ?a rdf:type ontology:musical_instrument } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { resource:tonbak property:instrument ?t . ?t rdf:type ontology:musical_instrument } } . FILTER ( ?c = ?b ) }
[]
musical instrument common name
SYSTEM
60
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 count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q3574843
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?n ) AS ?c ) WHERE { ?n property:P1303 ?a . ?n rdf:type ontology:Q502895 . ?a rdf:type ontology:Q34379 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { resource:Q3574843 property:P1303 ?t . ?t rdf:type ontology:Q34379 } } . FILTER ( ?c = ?b ) }
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
60
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity tonbak
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?n ) AS ?c ) WHERE { ?n property:instrument ?a . ?n rdf:type ontology:common_name . ?a rdf:type ontology:musical_instrument } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { resource:tonbak property:instrument ?t . ?t rdf:type ontology:musical_instrument } } . FILTER ( ?c = ?b ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1179017
P1303
Q34379 Q502895
USER
Which musical instruments do approximately the same number of people know to play as Daxophone ?
(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 Q1179017
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?i ) AS ?h ) WHERE { ?i property:P1303 ?f . ?f rdf:type ontology:Q34379 . ?i rdf:type ontology:Q502895 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) WHERE { resource:Q1179017 property:P1303 ?k . ?k rdf:type ontology:Q34379 } } . FILTER ( ?h = ?s ) }
Daxophone
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Daxophone
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?i ) AS ?h ) WHERE { ?i property:instrument ?f . ?f rdf:type ontology:musical_instrument . ?i rdf:type ontology:common_name } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) WHERE { resource:Daxophone property:instrument ?k . ?k rdf:type ontology:musical_instrument } } . FILTER ( ?h = ?s ) }
[]
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 Q1179017
relation P1303
type Q34379
[ANSWERS] approximately the same number of people know to play as Daxophone
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?i ) AS ?h ) WHERE { ?i property:P1303 ?f . ?f rdf:type ontology:Q34379 . ?i rdf:type ontology:Q502895 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) WHERE { resource:Q1179017 property:P1303 ?k . ?k rdf:type ontology:Q34379 } } . FILTER ( ?h = ?s ) }
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 Daxophone
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 Daxophone
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?i ) AS ?h ) WHERE { ?i property:instrument ?f . ?f rdf:type ontology:musical_instrument . ?i rdf:type ontology:common_name } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) WHERE { resource:Daxophone property:instrument ?k . ?k rdf:type ontology:musical_instrument } } . FILTER ( ?h = ?s ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q744831
P1303
Q34379 Q502895
USER
And what about Mridangam?
(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 Q744831
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?d ) WHERE { ?q property:P1303 ?t . ?t rdf:type ontology:Q34379 . ?q rdf:type ontology:Q502895 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { ?k rdf:type ontology:Q34379 . resource:Q744831 property:P1303 ?k } } . FILTER ( ?d = ?b ) }
Mridangam
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Mridangam
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?d ) WHERE { ?q property:instrument ?t . ?t rdf:type ontology:musical_instrument . ?q rdf:type ontology:common_name } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { ?k rdf:type ontology:musical_instrument . resource:Mridangam property:instrument ?k } } . FILTER ( ?d = ?b ) }
[]
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 Q744831
relation P1303
type Q34379
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?d ) WHERE { ?q property:P1303 ?t . ?t rdf:type ontology:Q34379 . ?q rdf:type ontology:Q502895 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { ?k rdf:type ontology:Q34379 . resource:Q744831 property:P1303 ?k } } . FILTER ( ?d = ?b ) }
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 Mridangam
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?d ) WHERE { ?q property:instrument ?t . ?t rdf:type ontology:musical_instrument . ?q rdf:type ontology:common_name } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { ?k rdf:type ontology:musical_instrument . resource:Mridangam property:instrument ?k } } . FILTER ( ?d = ?b ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P180
Q34379 Q1792379
USER
Which art genres demonstrate min number of musical instruments ?
(c(Q1792379),P180,c(Q34379))
action argmin
action find_tuple_counts
relation P180
type Q1792379
type Q34379
[{'concept': 'Q1792379'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?q ) { SELECT DISTINCT ?n ( COUNT ( ?j ) AS ?s ) WHERE { ?n property:P180 ?j . ?j rdf:type ontology:Q34379 . ?n rdf:type ontology:Q1792379 } GROUP BY ?n } } . { SELECT DISTINCT ?l ( COUNT ( ?x ) AS ?h ) WHERE { ?l property:P180 ?x . ?l rdf:type ontology:Q1792379 . ?x rdf:type ontology:Q34379 } GROUP BY ?l } . FILTER ( ?h = ?q ) }
action argmin
action find_tuple_counts
relation depicts
type art genre
type musical instrument
[{'concept': 'art genre'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?q ) { SELECT DISTINCT ?n ( COUNT ( ?j ) AS ?s ) WHERE { ?n property:depicts ?j . ?j rdf:type ontology:musical_instrument . ?n rdf:type ontology:art_genre } GROUP BY ?n } } . { SELECT DISTINCT ?l ( COUNT ( ?x ) AS ?h ) WHERE { ?l property:depicts ?x . ?l rdf:type ontology:art_genre . ?x rdf:type ontology:musical_instrument } GROUP BY ?l } . FILTER ( ?h = ?q ) }
[]
musical instrument art genre
Q5712848 Q4668641 Q3207118
SYSTEM
Self-Portrait with Monkey, Above and Below, The Ring of Fire
Q21856809 Q26267230 Q1189907 Q22677514 Q3362398 Q2963437 Q22073388 Q26318263 Q4668641 Q22670282 Q2302151 Q5883078 Q3687196 Q18353841 Q22915045 Q26706171 Q26928600 Q5712848 Q3900659 Q742530 Q18688281 Q742333 Q937330 Q3374376 Q1615638 Q22677763 Q22677825 Q6944995 Q248726 Q27087718 Q3207118 Q22670323 Q26317896 Q214127 Q315569 Q1353984 Q3399515 Q158607 Q659396 Q18559971 Q18917896 Q26709687 Q22575803 Q1339864 Q2415378 Q191163 Q18579186 Q5448026 Q12303833 Q22677734 Q26668969
(c(Q1792379),P180,c(Q34379))
action argmin
action find_tuple_counts
relation P180
type Q1792379
type Q34379
[ANSWERS] demonstrate min number of musical instruments
[{'concept': 'Q1792379'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?q ) { SELECT DISTINCT ?n ( COUNT ( ?j ) AS ?s ) WHERE { ?n property:P180 ?j . ?j rdf:type ontology:Q34379 . ?n rdf:type ontology:Q1792379 } GROUP BY ?n } } . { SELECT DISTINCT ?l ( COUNT ( ?x ) AS ?h ) WHERE { ?l property:P180 ?x . ?l rdf:type ontology:Q1792379 . ?x rdf:type ontology:Q34379 } GROUP BY ?l } . FILTER ( ?h = ?q ) }
Selim Palmgren Portrait of a king of marksmen (presumably Jacobus Albertus de Backer) Water Lilies Market place parliament Panorama du Caire One Thousand Pictures of the Ocean (Chie no umi) Henry M. Jackson Bust of Edward VII Above and Below Crying girl animal painting Hollywood novel Christ's Charge to Peter Architectural painting Zinc sculptures of the Pori town hall Sir Austen Henry Layard Existentialist literature Self-Portrait with Monkey The Miraculous Draught of Fishes idyll Portrait of A.S.Pushkin history painting kouros mythological painting submarine films Statue of Risto Ryti Maire-sculpture My Bed Venus figurine Bust Of Sir Henry Tate, Outside Tate Library, Brixton Oval The Ring of Fire JUHANA III - The king of Sweden 1568-1592 -relief Monument To John Heminge And Henry Condell In Former Churchyard Of Church Of St Mary Aldermanbury genre painting Karl Marx Monument landscape photography equestrian portrait marine art equestrian statue Rock art at Åbodsjön history sculpture Antoine Coypel Going swimming, from the theme mother and child sports film schutterstuk landscape art Petrus Franciscus Greive (1811-1872) figure painting floral painting Statue of Duke John Bust Of Sir Joseph Paxton At Crystal Palace Park
Self-Portrait with Monkey, Above and Below and The Ring of Fire demonstrate min number of musical instruments
Self-Portrait with Monkey Above and Below The Ring of Fire
action argmin
action find_tuple_counts
relation depicts
type art genre
type musical instrument
[{'concept': 'art genre'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?q ) { SELECT DISTINCT ?n ( COUNT ( ?j ) AS ?s ) WHERE { ?n property:depicts ?j . ?j rdf:type ontology:musical_instrument . ?n rdf:type ontology:art_genre } GROUP BY ?n } } . { SELECT DISTINCT ?l ( COUNT ( ?x ) AS ?h ) WHERE { ?l property:depicts ?x . ?l rdf:type ontology:art_genre . ?x rdf:type ontology:musical_instrument } GROUP BY ?l } . FILTER ( ?h = ?q ) }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P180
Q2221906 Q1792379 Q1792379
USER
How many art genres demonstrate less number of geographic locations or art genres than that art genre ?
(c(Q1792379),P180,c(Q2221906)|c(Q1792379))
[{'concept': 'Q1792379'}, 'P180', [{'concept': 'Q2221906'}, {'concept': 'Q1792379'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { VALUES ( ?o ) { ( ?y ) ( ?z ) } . ?z property:P180 ?o } . ?z rdf:type ontology:Q1792379 . ?y rdf:type ontology:Q2221906 }
[{'concept': 'art genre'}, 'depicts', [{'concept': 'geographic location'}, {'concept': 'art genre'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { VALUES ( ?o ) { ( ?y ) ( ?z ) } . ?z property:depicts ?o } . ?z rdf:type ontology:art_genre . ?y rdf:type ontology:geographic_location }
[]
geographic location art genre art genre
Comparative|Count over More/Less|Mult. entity type|Clarification
Q4668641
SYSTEM
Did you mean Above and Below ?
(c(Q1792379),P180,c(Q2221906)|c(Q1792379))
[ANSWER]
[{'concept': 'Q1792379'}, 'P180', [{'concept': 'Q2221906'}, {'concept': 'Q1792379'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { VALUES ( ?o ) { ( ?y ) ( ?z ) } . ?z property:P180 ?o } . ?z rdf:type ontology:Q1792379 . ?y rdf:type ontology:Q2221906 }
Did you mean Above and Below ?
Above and Below
[{'concept': 'art genre'}, 'depicts', [{'concept': 'geographic location'}, {'concept': 'art genre'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { VALUES ( ?o ) { ( ?y ) ( ?z ) } . ?z property:depicts ?o } . ?z rdf:type ontology:art_genre . ?y rdf:type ontology:geographic_location }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant The Ring of Fire. Could you tell me the answer for that?
(c(Q1792379),P180,c(Q2221906)|c(Q1792379))
Q3207118
[{'concept': 'Q1792379'}, 'P180', [{'concept': 'Q2221906'}, {'concept': 'Q1792379'}]]
[{'concept': 'art genre'}, 'depicts', [{'concept': 'geographic location'}, {'concept': 'art genre'}]]
[]
SYSTEM
0
(c(Q1792379),P180,c(Q2221906)|c(Q1792379))
[ANSWER]
[{'concept': 'Q1792379'}, 'P180', [{'concept': 'Q2221906'}, {'concept': 'Q1792379'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P180 ?y } UNION { ?z property:P180 ?z } } . ?z rdf:type ontology:Q1792379 . ?y rdf:type ontology:Q2221906 }
0
[{'concept': 'art genre'}, 'depicts', [{'concept': 'geographic location'}, {'concept': 'art genre'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:depicts ?y } UNION { ?z property:depicts ?z } } . ?z rdf:type ontology:art_genre . ?y rdf:type ontology:geographic_location }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q5712848
P180
Q82799 Q502895
USER
How many names and people are expressed in Self-Portrait with Monkey ?
(Q5712848,P180,c(Q82799)) (Q5712848,P180,c(Q502895))
action count
action union
action filter_type
action find
entity Q5712848
relation P180
type Q82799
action filter_type
action find
entity Q5712848
relation P180
type Q502895
['Q5712848', 'P180', {'concept': 'Q82799'}] ['Q5712848', 'P180', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { ?m rdf:type ?a . VALUES ( ?a ) { ( ontology:Q82799 ) ( ontology:Q502895 ) } }
Self-Portrait with Monkey
action count
action union
action filter_type
action find
entity Self-Portrait with Monkey
relation depicts
type name
action filter_type
action find
entity Self-Portrait with Monkey
relation depicts
type common name
['Self-Portrait with Monkey', 'depicts', {'concept': 'name'}] ['Self-Portrait with Monkey', 'depicts', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { ?m rdf:type ?a . VALUES ( ?a ) { ( ontology:name ) ( ontology:common_name ) } }
[]
name common name
SYSTEM
1 names and 1 people
Q1367 Q5588
(Q5712848,P180,c(Q82799)) (Q5712848,P180,c(Q502895))
action count
action union
action filter_type
action find
entity Q5712848
relation P180
type Q82799
action filter_type
action find
entity Q5712848
relation P180
type Q502895
[ANSWER]
['Q5712848', 'P180', {'concept': 'Q82799'}] ['Q5712848', 'P180', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { ?m rdf:type ?a . VALUES ( ?a ) { ( ontology:Q82799 ) ( ontology:Q502895 ) } }
monkey Frida Kahlo
1 names and 1 people
action count
action union
action filter_type
action find
entity Self-Portrait with Monkey
relation depicts
type name
action filter_type
action find
entity Self-Portrait with Monkey
relation depicts
type common name
['Self-Portrait with Monkey', 'depicts', {'concept': 'name'}] ['Self-Portrait with Monkey', 'depicts', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { ?m rdf:type ?a . VALUES ( ?a ) { ( ontology:name ) ( ontology:common_name ) } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5712848
P170
Q502895
USER
Who is credited with the creation of that art genre ?
action filter_type
action find
entity Q5712848
relation P170
type Q502895
SELECT DISTINCT ?u WHERE { resource:Q5712848 property:P170 ?u . ?u rdf:type ontology:Q502895 }
Self-Portrait with Monkey
action filter_type
action find
entity Self-Portrait with Monkey
relation creator
type common name
SELECT DISTINCT ?u WHERE { resource:Self-Portrait_with_Monkey property:creator ?u . ?u rdf:type ontology:common_name }
[]
common name
Q5588
SYSTEM
Frida Kahlo
Q5588
action filter_type
action find
entity Q5712848
relation P170
type Q502895
[ANSWER] is credited with the creation of that art genre
SELECT DISTINCT ?u WHERE { resource:Q5712848 property:P170 ?u . ?u rdf:type ontology:Q502895 }
Frida Kahlo
Frida Kahlo is credited with the creation of that art genre
Frida Kahlo
action filter_type
action find
entity Self-Portrait with Monkey
relation creator
type common name
SELECT DISTINCT ?u WHERE { resource:Self-Portrait_with_Monkey property:creator ?u . ?u rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q5588 Q35738
P921
Q838948
USER
Was Frida mainly based on that person ?
(Q35738,P921,Q5588)
action is_in
entity Q5588
action find
entity Q35738
relation P921
['Q35738', 'P921', 'Q5588']
ASK WHERE { resource:Q35738 property:P921 resource:Q5588 }
Frida Kahlo Frida
action is_in
entity Frida Kahlo
action find
entity Frida
relation main subject
['Frida', 'main subject', 'Frida Kahlo']
ASK WHERE { resource:Frida property:main_subject resource:Frida_Kahlo }
[]
work of art
SYSTEM
YES
(Q35738,P921,Q5588)
action is_in
entity Q5588
action find
entity Q35738
relation P921
[ANSWER]
['Q35738', 'P921', 'Q5588']
ASK WHERE { resource:Q35738 property:P921 resource:Q5588 }
Yes
action is_in
entity Frida Kahlo
action find
entity Frida
relation main subject
['Frida', 'main subject', 'Frida Kahlo']
ASK WHERE { resource:Frida property:main_subject resource:Frida_Kahlo }
[]