Simple Question (Direct)
Simple Question
Q364854
P1066
Q502895
USER
Which person was the professor of Christian Sinding ?
(Q364854,P1066,c(Q502895))
action filter_type
action find
entity Q364854
relation P1066
type Q502895
['Q364854', 'P1066', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q364854 property:P1066 ?a . ?a rdf:type ontology:Q502895 }
Christian Sinding
action filter_type
action find
entity Christian Sinding
relation student of
type common name
['Christian Sinding', 'student of', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Christian_Sinding property:student_of ?a . ?a rdf:type ontology:common_name }
[]
common name
Q547227
SYSTEM
Salomon Jadassohn
Q547227
(Q364854,P1066,c(Q502895))
action filter_type
action find
entity Q364854
relation P1066
type Q502895
[ANSWER] was the professor of Christian Sinding
['Q364854', 'P1066', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q364854 property:P1066 ?a . ?a rdf:type ontology:Q502895 }
Salomon Jadassohn
Salomon Jadassohn was the professor of Christian Sinding
Salomon Jadassohn
action filter_type
action find
entity Christian Sinding
relation student of
type common name
['Christian Sinding', 'student of', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Christian_Sinding property:student_of ?a . ?a rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q547227
P1303
Q34379
USER
Which musical instrument can that person perform with ?
(Q547227,P1303,c(Q34379))
action filter_type
action find
entity Q547227
relation P1303
type Q34379
['Q547227', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q34379 . resource:Q547227 property:P1303 ?x }
Salomon Jadassohn
action filter_type
action find
entity Salomon Jadassohn
relation instrument
type musical instrument
['Salomon Jadassohn', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:musical_instrument . resource:Salomon_Jadassohn property:instrument ?x }
[]
musical instrument
Q5994
SYSTEM
piano
Q5994
(Q547227,P1303,c(Q34379))
action filter_type
action find
entity Q547227
relation P1303
type Q34379
That person can perform a [ANSWER]
['Q547227', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q34379 . resource:Q547227 property:P1303 ?x }
piano
That person can perform a piano
piano
action filter_type
action find
entity Salomon Jadassohn
relation instrument
type musical instrument
['Salomon Jadassohn', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:musical_instrument . resource:Salomon_Jadassohn property:instrument ?x }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q547227
P86
Q207628
USER
Which musical composition has that person as the melodist ?
(c(Q207628),P86,Q5994)
action filter_type
action find_reverse
entity Q547227
relation P86
type Q207628
[{'concept': 'Q207628'}, 'P86', 'Q5994']
SELECT DISTINCT ?l WHERE { ?l property:P86 resource:Q547227 . ?l rdf:type ontology:Q207628 }
Salomon Jadassohn
action filter_type
action find_reverse
entity Salomon Jadassohn
relation composer
type musical composition
[{'concept': 'musical composition'}, 'composer', 'piano']
SELECT DISTINCT ?l WHERE { ?l property:composer resource:Salomon_Jadassohn . ?l rdf:type ontology:musical_composition }
[]
musical composition
Q16965738
SYSTEM
String Quartet
Q16965738
(c(Q207628),P86,Q5994)
action filter_type
action find_reverse
entity Q547227
relation P86
type Q207628
[ANSWER] has that person as the melodist
[{'concept': 'Q207628'}, 'P86', 'Q5994']
SELECT DISTINCT ?l WHERE { ?l property:P86 resource:Q547227 . ?l rdf:type ontology:Q207628 }
String Quartet
String Quartet has that person as the melodist
String Quartet
action filter_type
action find_reverse
entity Salomon Jadassohn
relation composer
type musical composition
[{'concept': 'musical composition'}, 'composer', 'piano']
SELECT DISTINCT ?l WHERE { ?l property:composer resource:Salomon_Jadassohn . ?l rdf:type ontology:musical_composition }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P361
Q207628 Q838948
USER
Which works of art are parts of atleast 1 musical composition ?
(c(Q838948),P361,c(Q207628))
action atleast
action find_tuple_counts
relation P361
type Q838948
type Q207628
value 1
[{'concept': 'Q838948'}, 'P361', {'concept': 'Q207628'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?a >= 1 ) . { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?a ) WHERE { ?q property:P361 ?z . ?z rdf:type ontology:Q207628 . ?q rdf:type ontology:Q838948 } GROUP BY ?q } }
action atleast
action find_tuple_counts
relation part of
type work of art
type musical composition
value 1
[{'concept': 'work of art'}, 'part of', {'concept': 'musical composition'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?a >= 1 ) . { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?a ) WHERE { ?q property:part_of ?z . ?z rdf:type ontology:musical_composition . ?q rdf:type ontology:work_of_art } GROUP BY ?q } }
[]
musical composition work of art
Q16765357 Q16766039
SYSTEM
Cantabile in B-flat major, B.84, Variations sur un air national de Moore, B.12a
Q16765357 Q16766039
(c(Q838948),P361,c(Q207628))
action atleast
action find_tuple_counts
relation P361
type Q838948
type Q207628
value 1
[ANSWERS]
[{'concept': 'Q838948'}, 'P361', {'concept': 'Q207628'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?a >= 1 ) . { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?a ) WHERE { ?q property:P361 ?z . ?z rdf:type ontology:Q207628 . ?q rdf:type ontology:Q838948 } GROUP BY ?q } }
Cantabile in B-flat major, B.84 Variations sur un air national de Moore, B.12a
Major Cantabile in B-flat major, B.84 and Variations sur un air national de Moore, B.12a are parts of atleast 1 musical composition
Cantabile in B-flat major, B.84 Variations sur un air national de Moore, B.12a
action atleast
action find_tuple_counts
relation part of
type work of art
type musical composition
value 1
[{'concept': 'work of art'}, 'part of', {'concept': 'musical composition'}]
SELECT DISTINCT ?q WHERE { FILTER ( ?a >= 1 ) . { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?a ) WHERE { ?q property:part_of ?z . ?z rdf:type ontology:musical_composition . ?q rdf:type ontology:work_of_art } GROUP BY ?q } }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P361
Q9332 Q838948
USER
How many works of art are a component of greater number of behaviors than that work of art ?
(c(Q838948),P361,c(Q9332))
[{'concept': 'Q838948'}, 'P361', {'concept': 'Q9332'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P361 ?y . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q9332 }
[{'concept': 'work of art'}, 'part of', {'concept': 'behavior'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:part_of ?y . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:behavior }
[]
behavior work of art
Comparative|Count over More/Less|Single entity type|Clarification
Q16765357
SYSTEM
Did you mean Cantabile in B-flat major, B.84 ?
(c(Q838948),P361,c(Q9332))
[ANSWER]
[{'concept': 'Q838948'}, 'P361', {'concept': 'Q9332'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P361 ?y . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q9332 }
Did you mean Cantabile in B-flat major, B.84 ?
Cantabile in B-flat major, B.84
[{'concept': 'work of art'}, 'part of', {'concept': 'behavior'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:part_of ?y . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:behavior }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Variations sur un air national de Moore, B.12a. Could you tell me the answer for that?
(c(Q838948),P361,c(Q9332))
Q16766039
[{'concept': 'Q838948'}, 'P361', {'concept': 'Q9332'}]
[{'concept': 'work of art'}, 'part of', {'concept': 'behavior'}]
[]
SYSTEM
1
Q7600677
(c(Q838948),P361,c(Q9332))
[ANSWER]
[{'concept': 'Q838948'}, 'P361', {'concept': 'Q9332'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P361 ?y . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q9332 }
computer graphics
1
[{'concept': 'work of art'}, 'part of', {'concept': 'behavior'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:part_of ?y . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:behavior }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q547227 Q4243265
P106
Q12737077
USER
How many occupations do Salomon Jadassohn and Charles-Frédéric Kreubé do for a living ?
(Q547227,P106,c(Q12737077)) (Q4243265,P106,c(Q12737077))
action count
action intersection
action filter_type
action find
entity Q547227
relation P106
type Q12737077
action filter_type
action find
entity Q4243265
relation P106
type Q12737077
['Q547227', 'P106', {'concept': 'Q12737077'}] ['Q4243265', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { resource:Q547227 property:P106 ?x . ?x rdf:type ontology:Q12737077 . resource:Q4243265 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
Salomon Jadassohn Charles-Frédéric Kreubé
action count
action intersection
action filter_type
action find
entity Salomon Jadassohn
relation occupation
type occupation
action filter_type
action find
entity Charles-Frédéric Kreubé
relation occupation
type occupation
['Salomon Jadassohn', 'occupation', {'concept': 'occupation'}] ['Charles-Frédéric Kreubé', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { resource:Salomon_Jadassohn property:occupation ?x . ?x rdf:type ontology:occupation . resource:Charles-Frédéric_Kreubé property:occupation ?x . ?x rdf:type ontology:occupation }
[]
occupation
SYSTEM
2
Q158852 Q36834
(Q547227,P106,c(Q12737077)) (Q4243265,P106,c(Q12737077))
action count
action intersection
action filter_type
action find
entity Q547227
relation P106
type Q12737077
action filter_type
action find
entity Q4243265
relation P106
type Q12737077
[ANSWER]
['Q547227', 'P106', {'concept': 'Q12737077'}] ['Q4243265', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { resource:Q547227 property:P106 ?x . ?x rdf:type ontology:Q12737077 . resource:Q4243265 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
conductor composer
2
action count
action intersection
action filter_type
action find
entity Salomon Jadassohn
relation occupation
type occupation
action filter_type
action find
entity Charles-Frédéric Kreubé
relation occupation
type occupation
['Salomon Jadassohn', 'occupation', {'concept': 'occupation'}] ['Charles-Frédéric Kreubé', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { resource:Salomon_Jadassohn property:occupation ?x . ?x rdf:type ontology:occupation . resource:Charles-Frédéric_Kreubé property:occupation ?x . ?x rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P870
Q34379 Q43229 Q207628
USER
How many musical compositions use exactly 2 musical instruments and organizations as a musical instrument ?
(c(Q207628),P870,c(Q34379)|c(Q43229))
action count
action equal
action union
action find_tuple_counts
relation P870
type Q207628
type Q34379
action find_tuple_counts
relation P870
type Q207628
type Q43229
value 2
[{'concept': 'Q207628'}, 'P870', [{'concept': 'Q34379'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?g ) WHERE { { ?r rdf:type ontology:Q43229 . ?t rdf:type ontology:Q207628 . ?t property:P870 ?r } UNION { ?t property:P870 ?r . ?r rdf:type ontology:Q34379 . ?t rdf:type ontology:Q207628 } } GROUP BY ?t } . FILTER ( ?g = 2 ) }
action count
action equal
action union
action find_tuple_counts
relation instrumentation
type musical composition
type musical instrument
action find_tuple_counts
relation instrumentation
type musical composition
type organization
value 2
[{'concept': 'musical composition'}, 'instrumentation', [{'concept': 'musical instrument'}, {'concept': 'organization'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?g ) WHERE { { ?r rdf:type ontology:organization . ?t rdf:type ontology:musical_composition . ?t property:instrumentation ?r } UNION { ?t property:instrumentation ?r . ?r rdf:type ontology:musical_instrument . ?t rdf:type ontology:musical_composition } } GROUP BY ?t } . FILTER ( ?g = 2 ) }
[]
musical instrument organization musical composition
SYSTEM
6
Q3686129 Q2501530 Q17637324 Q1746028 Q633441 Q911487
(c(Q207628),P870,c(Q34379)|c(Q43229))
action count
action equal
action union
action find_tuple_counts
relation P870
type Q207628
type Q34379
action find_tuple_counts
relation P870
type Q207628
type Q43229
value 2
[ANSWER]
[{'concept': 'Q207628'}, 'P870', [{'concept': 'Q34379'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?g ) WHERE { { ?r rdf:type ontology:Q43229 . ?t rdf:type ontology:Q207628 . ?t property:P870 ?r } UNION { ?t property:P870 ?r . ?r rdf:type ontology:Q34379 . ?t rdf:type ontology:Q207628 } } GROUP BY ?t } . FILTER ( ?g = 2 ) }
harpsichord concerto Symphony on a French Mountain Air Quartet piano concerto violin concerto Romeo and Juliet
6
action count
action equal
action union
action find_tuple_counts
relation instrumentation
type musical composition
type musical instrument
action find_tuple_counts
relation instrumentation
type musical composition
type organization
value 2
[{'concept': 'musical composition'}, 'instrumentation', [{'concept': 'musical instrument'}, {'concept': 'organization'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?g ) WHERE { { ?r rdf:type ontology:organization . ?t rdf:type ontology:musical_composition . ?t property:instrumentation ?r } UNION { ?t property:instrumentation ?r . ?r rdf:type ontology:musical_instrument . ?t rdf:type ontology:musical_composition } } GROUP BY ?t } . FILTER ( ?g = 2 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4024900 Q16766039
P161 P86
Q502895
USER
Which people wrote the music for Variations sur un air national de Moore, B.12a or were casted in Sugar ?
OR((Q16766039,P86,c(Q502895)), (Q4024900,P161,c(Q502895)))
action filter_type
action union
action find
entity Q16766039
relation P86
action find
entity Q4024900
relation P161
type Q502895
{'OR': [['Q16766039', 'P86', {'concept': 'Q502895'}], ['Q4024900', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q16766039 property:P86 ?g } UNION { resource:Q4024900 property:P161 ?g } } . ?g rdf:type ontology:Q502895 }
Sugar Variations sur un air national de Moore, B.12a
action filter_type
action union
action find
entity Variations sur un air national de Moore, B.12a
relation composer
action find
entity Sugar
relation cast member
type common name
{'OR': [['Variations sur un air national de Moore, B.12a', 'composer', {'concept': 'common name'}], ['Sugar', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Variations_sur_un_air_national_de_Moore,_B.12a property:composer ?g } UNION { resource:Sugar property:cast_member ?g } } . ?g rdf:type ontology:common_name }
[]
common name
Q3964941 Q3778812 Q77456 Q599728 Q3958407 Q1329564 Q3764680 Q1872992 Q3897818 Q1268
SYSTEM
Some of them are Sophia Lombardo, Guerrino Crivello, Dagmar Lassander, Salvatore Baccaro, Settimio Scacco, Elio Crovetto, Gino Pagnani, Luca Sportelli, Patrizia Garganese, Frédéric Chopin
Q3726628 Q3707910 Q1936098 Q3948230 Q3764680 Q1725191 Q77456 Q1329564 Q951298 Q3933034 Q3778812 Q434479 Q599728 Q1009050 Q3897818 Q178307 Q1268 Q266229 Q3847540 Q3845626 Q518369 Q3749314 Q3958407 Q3839775 Q3964941 Q1872992
OR((Q16766039,P86,c(Q502895)), (Q4024900,P161,c(Q502895)))
action filter_type
action union
action find
entity Q16766039
relation P86
action find
entity Q4024900
relation P161
type Q502895
[ANSWERS] wrote the music for Variations sur un air national de Moore, B.12a or were casted in Sugar
{'OR': [['Q16766039', 'P86', {'concept': 'Q502895'}], ['Q4024900', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q16766039 property:P86 ?g } UNION { resource:Q4024900 property:P161 ?g } } . ?g rdf:type ontology:Q502895 }
Enzo Robutti Dino Emanuelli Mimmo Poli Sandro Ghiani Gino Pagnani Pippo Franco Dagmar Lassander Elio Crovetto Glauco Onorato Renzo Marignano Guerrino Crivello Lino Banfi Salvatore Baccaro Renato Pozzetto Patrizia Garganese Sal Borgese Frédéric Chopin Edwige Fenech Maria Tedeschi Marcello Martana Gianfranco Barra Franca Scagnetti Settimio Scacco Luigi Leoni Sophia Lombardo Luca Sportelli
Sophia Lombardo, Guerrino Crivello, Dagmar Lassander, Salvatore Baccaro, Settimio Scacco, Elio Crovetto, Gino Pagnani, Luca Sportelli, Patrizia Garganese and Frédéric Chopin wrote the music for Variations sur un air national de Moore, B.12a or were casted in Sugar
Sophia Lombardo Guerrino Crivello Dagmar Lassander Salvatore Baccaro Settimio Scacco Elio Crovetto Gino Pagnani Luca Sportelli Patrizia Garganese Frédéric Chopin
action filter_type
action union
action find
entity Variations sur un air national de Moore, B.12a
relation composer
action find
entity Sugar
relation cast member
type common name
{'OR': [['Variations sur un air national de Moore, B.12a', 'composer', {'concept': 'common name'}], ['Sugar', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Variations_sur_un_air_national_de_Moore,_B.12a property:composer ?g } UNION { resource:Sugar property:cast_member ?g } } . ?g rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q644440
P1303
Q34379 Q502895
USER
Which musical instruments are played by less number of people than Lap steel guitar ?
(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 Q644440
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?g ) WHERE { ?a rdf:type ontology:Q34379 . ?w rdf:type ontology:Q502895 . ?w property:P1303 ?a } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { ?v property:P1303 resource:Q644440 . ?v rdf:type ontology:Q502895 } } . FILTER ( ?g < ?f ) }
Lap steel guitar
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity Lap steel guitar
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?g ) WHERE { ?a rdf:type ontology:musical_instrument . ?w rdf:type ontology:common_name . ?w property:instrument ?a } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { ?v property:instrument resource:Lap_steel_guitar . ?v rdf:type ontology:common_name } } . FILTER ( ?g < ?f ) }
[]
musical instrument common name
Q1879664 Q748455 Q173453
SYSTEM
spoon, cajón, wind instrument
Q1879664 Q748455 Q173453
(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 Q644440
relation P1303
type Q502895
[ANSWERS] are played by less number of people than Lap steel guitar
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?g ) WHERE { ?a rdf:type ontology:Q34379 . ?w rdf:type ontology:Q502895 . ?w property:P1303 ?a } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { ?v property:P1303 resource:Q644440 . ?v rdf:type ontology:Q502895 } } . FILTER ( ?g < ?f ) }
spoon cajón wind instrument
Spoon, cajón and wind instrument are played by less number of people than Lap steel guitar
spoon cajón wind instrument
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity Lap steel guitar
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?g ) WHERE { ?a rdf:type ontology:musical_instrument . ?w rdf:type ontology:common_name . ?w property:instrument ?a } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { ?v property:instrument resource:Lap_steel_guitar . ?v rdf:type ontology:common_name } } . FILTER ( ?g < ?f ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1268
P25
Q502895
USER
Which person was the mother of Frédéric Chopin ?
(Q1268,P25,c(Q502895))
action filter_type
action find
entity Q1268
relation P25
type Q502895
['Q1268', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q1268 property:P25 ?m . ?m rdf:type ontology:Q502895 }
Frédéric Chopin
action filter_type
action find
entity Frédéric Chopin
relation mother
type common name
['Frédéric Chopin', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Frédéric_Chopin property:mother ?m . ?m rdf:type ontology:common_name }
[]
common name
Q9356382
SYSTEM
Tekla Justyna Chopin
Q9356382
(Q1268,P25,c(Q502895))
action filter_type
action find
entity Q1268
relation P25
type Q502895
[ANSWER] was the mother of Frédéric Chopin
['Q1268', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q1268 property:P25 ?m . ?m rdf:type ontology:Q502895 }
Tekla Justyna Chopin
Tekla Justyna Chopin was the mother of Frédéric Chopin
Tekla Justyna Chopin
action filter_type
action find
entity Frédéric Chopin
relation mother
type common name
['Frédéric Chopin', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Frédéric_Chopin property:mother ?m . ?m rdf:type ontology:common_name }
[]