Simple Question (Direct)
Simple Question
Q656605
P108
Q1002697
USER
Which periodical literatures do Carine Roitfeld work for ?
(Q656605,P108,c(Q1002697))
action filter_type
action find
entity Q656605
relation P108
type Q1002697
['Q656605', 'P108', {'concept': 'Q1002697'}]
SELECT DISTINCT ?r WHERE { resource:Q656605 property:P108 ?r . ?r rdf:type ontology:Q1002697 }
Carine Roitfeld
action filter_type
action find
entity Carine Roitfeld
relation employer
type periodical literature
['Carine Roitfeld', 'employer', {'concept': 'periodical literature'}]
SELECT DISTINCT ?r WHERE { resource:Carine_Roitfeld property:employer ?r . ?r rdf:type ontology:periodical_literature }
[]
periodical literature
Q654606 Q3562080
SYSTEM
Harper's Bazaar, Vogue Paris
Q654606 Q3562080
(Q656605,P108,c(Q1002697))
action filter_type
action find
entity Q656605
relation P108
type Q1002697
Carine Roitfeld work in [ANSWERS]
['Q656605', 'P108', {'concept': 'Q1002697'}]
SELECT DISTINCT ?r WHERE { resource:Q656605 property:P108 ?r . ?r rdf:type ontology:Q1002697 }
Harper's Bazaar Vogue Paris
Carine Roitfeld work in Harper's Bazaar and Vogue Paris
Harper's Bazaar Vogue Paris
action filter_type
action find
entity Carine Roitfeld
relation employer
type periodical literature
['Carine Roitfeld', 'employer', {'concept': 'periodical literature'}]
SELECT DISTINCT ?r WHERE { resource:Carine_Roitfeld property:employer ?r . ?r rdf:type ontology:periodical_literature }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q656605
P40
Q502895
USER
Who are the children of Carine Roitfeld ?
(Q656605,P40,c(Q502895))
action filter_type
action find
entity Q656605
relation P40
type Q502895
['Q656605', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . resource:Q656605 property:P40 ?s }
Carine Roitfeld
action filter_type
action find
entity Carine Roitfeld
relation child
type common name
['Carine Roitfeld', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . resource:Carine_Roitfeld property:child ?s }
[]
common name
Q7938596 Q6306681
SYSTEM
Vladimir Restoin Roitfeld, Julia Restoin Roitfeld
Q7938596 Q6306681
(Q656605,P40,c(Q502895))
action filter_type
action find
entity Q656605
relation P40
type Q502895
The children of Carine Roitfeld are born [ANSWERS]
['Q656605', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . resource:Q656605 property:P40 ?s }
Vladimir Restoin Roitfeld Julia Restoin Roitfeld
The children of Carine Roitfeld are born Vladimir Restoin Roitfeld and Julia Restoin Roitfeld
Vladimir Restoin Roitfeld Julia Restoin Roitfeld
action filter_type
action find
entity Carine Roitfeld
relation child
type common name
['Carine Roitfeld', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . resource:Carine_Roitfeld property:child ?s }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q795912
P40
Q502895
USER
Do King Ling of Chu have those ones as a child ?
(Q795912,P40,Q7938596) (Q795912,P40,Q6306681)
action is_in
entity prev_answer
action find
entity Q795912
relation P40
['Q795912', 'P40', 'Q7938596'] ['Q795912', 'P40', 'Q6306681']
ASK WHERE { VALUES ( ?g ) { ( resource:Q7938596 ) ( resource:Q6306681 ) } . resource:Q795912 property:P40 ?g }
King Ling of Chu
action is_in
entity prev_answer
action find
entity King Ling of Chu
relation child
['King Ling of Chu', 'child', 'Vladimir Restoin Roitfeld'] ['King Ling of Chu', 'child', 'Julia Restoin Roitfeld']
ASK WHERE { VALUES ( ?g ) { ( resource:Vladimir_Restoin_Roitfeld ) ( resource:Julia_Restoin_Roitfeld ) } . resource:King_Ling_of_Chu property:child ?g }
[]
common name
SYSTEM
NO
(Q795912,P40,Q7938596) (Q795912,P40,Q6306681)
action is_in
entity prev_answer
action find
entity Q795912
relation P40
[ANSWER]
['Q795912', 'P40', 'Q7938596'] ['Q795912', 'P40', 'Q6306681']
ASK WHERE { VALUES ( ?g ) { ( resource:Q7938596 ) ( resource:Q6306681 ) } . resource:Q795912 property:P40 ?g }
No
action is_in
entity prev_answer
action find
entity King Ling of Chu
relation child
['King Ling of Chu', 'child', 'Vladimir Restoin Roitfeld'] ['King Ling of Chu', 'child', 'Julia Restoin Roitfeld']
ASK WHERE { VALUES ( ?g ) { ( resource:Vladimir_Restoin_Roitfeld ) ( resource:Julia_Restoin_Roitfeld ) } . resource:King_Ling_of_Chu property:child ?g }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q6306681 Q142
P27
Q15617994
USER
Is France the native country of Julia Restoin Roitfeld ?
(Q6306681,P27,Q142)
action is_in
entity Q142
action find
entity Q6306681
relation P27
['Q6306681', 'P27', 'Q142']
ASK WHERE { resource:Q6306681 property:P27 resource:Q142 }
Julia Restoin Roitfeld France
action is_in
entity France
action find
entity Julia Restoin Roitfeld
relation country of citizenship
['Julia Restoin Roitfeld', 'country of citizenship', 'France']
ASK WHERE { resource:Julia_Restoin_Roitfeld property:country_of_citizenship resource:France }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q6306681,P27,Q142)
action is_in
entity Q142
action find
entity Q6306681
relation P27
[ANSWER]
['Q6306681', 'P27', 'Q142']
ASK WHERE { resource:Q6306681 property:P27 resource:Q142 }
Yes
action is_in
entity France
action find
entity Julia Restoin Roitfeld
relation country of citizenship
['Julia Restoin Roitfeld', 'country of citizenship', 'France']
ASK WHERE { resource:Julia_Restoin_Roitfeld property:country_of_citizenship resource:France }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q120585
P1303
Q34379 Q502895
USER
How many musical instruments do greater number of people know to play than Tsuzumi ?
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q120585
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?o ) WHERE { ?x property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?x rdf:type ontology:Q502895 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) WHERE { resource:Q120585 property:P1303 ?e . ?e rdf:type ontology:Q34379 } } . FILTER ( ?o > ?k ) }
Tsuzumi
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Tsuzumi
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?o ) WHERE { ?x property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?x rdf:type ontology:common_name } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) WHERE { resource:Tsuzumi property:instrument ?e . ?e rdf:type ontology:musical_instrument } } . FILTER ( ?o > ?k ) }
[]
musical instrument common name
SYSTEM
30
Q80284 Q46185 Q201129 Q424017 Q80019 Q2563510 Q5994 Q3574843 Q81982 Q182718 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q862501 Q213100 Q537750 Q626035 Q742180 Q1300012 Q1444 Q220971 Q128309 Q726306 Q483994 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q120585
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?o ) WHERE { ?x property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?x rdf:type ontology:Q502895 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) WHERE { resource:Q120585 property:P1303 ?e . ?e rdf:type ontology:Q34379 } } . FILTER ( ?o > ?k ) }
viola bass guitar lyre acoustic bass guitar double bass steel-string acoustic guitar piano tonbak harpsichord Nyckelharpa vibraphone timpani trumpet cello violin harmonium upright piano ondes Martenot tabla Djembe glockenspiel viola d'amore toy piano organ marimba drum kit erhu Kazoo electronic keyboard drum
30
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Tsuzumi
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?o ) WHERE { ?x property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?x rdf:type ontology:common_name } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) WHERE { resource:Tsuzumi property:instrument ?e . ?e rdf:type ontology:musical_instrument } } . FILTER ( ?o > ?k ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q173453
P1303
Q34379 Q502895
USER
And also tell me about wind instrument?
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q173453
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?s ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?q ) AS ?n ) WHERE { ?y rdf:type ontology:Q34379 . ?q rdf:type ontology:Q502895 . ?q property:P1303 ?y } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { ?b rdf:type ontology:Q34379 . resource:Q173453 property:P1303 ?b } } . FILTER ( ?n > ?k ) }
wind instrument
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity wind instrument
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?s ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?q ) AS ?n ) WHERE { ?y rdf:type ontology:musical_instrument . ?q rdf:type ontology:common_name . ?q property:instrument ?y } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { ?b rdf:type ontology:musical_instrument . resource:wind_instrument property:instrument ?b } } . FILTER ( ?n > ?k ) }
[]
musical instrument common name
SYSTEM
63
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q5994 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q189737 Q1759986 Q1798603 Q1099153 Q8338 Q120585 Q713298 Q8371 Q8355 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q1444 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q128309 Q1129422 Q379248 Q726306 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q173453
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?s ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?q ) AS ?n ) WHERE { ?y rdf:type ontology:Q34379 . ?q rdf:type ontology:Q502895 . ?q property:P1303 ?y } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { ?b rdf:type ontology:Q34379 . resource:Q173453 property:P1303 ?b } } . FILTER ( ?n > ?k ) }
viola bass guitar lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki piano maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone timpani Wurlitzer electric piano string instrument clavinet trumpet Tsuzumi geomungo cello violin cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano organ gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn drum kit morin khuur Timbales erhu Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
63
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity wind instrument
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?s ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?q ) AS ?n ) WHERE { ?y rdf:type ontology:musical_instrument . ?q rdf:type ontology:common_name . ?q property:instrument ?y } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { ?b rdf:type ontology:musical_instrument . resource:wind_instrument property:instrument ?b } } . FILTER ( ?n > ?k ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q7938596
P19
Q56061
USER
How many administrative territories are the places of birth of Vladimir Restoin Roitfeld ?
(Q7938596,P19,c(Q56061))
action count
action filter_type
action find
entity Q7938596
relation P19
type Q56061
['Q7938596', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?s ) WHERE { resource:Q7938596 property:P19 ?a . ?a rdf:type ontology:Q56061 }
Vladimir Restoin Roitfeld
action count
action filter_type
action find
entity Vladimir Restoin Roitfeld
relation place of birth
type administrative territorial entity
['Vladimir Restoin Roitfeld', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?s ) WHERE { resource:Vladimir_Restoin_Roitfeld property:place_of_birth ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
Q90
(Q7938596,P19,c(Q56061))
action count
action filter_type
action find
entity Q7938596
relation P19
type Q56061
[ANSWER]
['Q7938596', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?s ) WHERE { resource:Q7938596 property:P19 ?a . ?a rdf:type ontology:Q56061 }
Paris
1
action count
action filter_type
action find
entity Vladimir Restoin Roitfeld
relation place of birth
type administrative territorial entity
['Vladimir Restoin Roitfeld', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?s ) WHERE { resource:Vladimir_Restoin_Roitfeld property:place_of_birth ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q5733477
Q56061
USER
And also tell me about Herbert Annesley Packer?
(Q5733477,P19,c(Q56061))
action count
action filter_type
action find
entity Q5733477
relation P19
type Q56061
['Q5733477', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { resource:Q5733477 property:P19 ?q . ?q rdf:type ontology:Q56061 }
Herbert Annesley Packer
action count
action filter_type
action find
entity Herbert Annesley Packer
relation place of birth
type administrative territorial entity
['Herbert Annesley Packer', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { resource:Herbert_Annesley_Packer property:place_of_birth ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
(Q5733477,P19,c(Q56061))
action count
action filter_type
action find
entity Q5733477
relation P19
type Q56061
[ANSWER]
['Q5733477', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { resource:Q5733477 property:P19 ?q . ?q rdf:type ontology:Q56061 }
1
action count
action filter_type
action find
entity Herbert Annesley Packer
relation place of birth
type administrative territorial entity
['Herbert Annesley Packer', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { resource:Herbert_Annesley_Packer property:place_of_birth ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q6306681 Q2669700
P40
Q502895
USER
How many people have Julia Restoin Roitfeld or Cinnamon Chasers as a child ?
(c(Q502895),P40,Q6306681) (c(Q502895),P40,Q2669700)
action count
action union
action filter_type
action find_reverse
entity Q6306681
relation P40
type Q502895
action filter_type
action find_reverse
entity Q2669700
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q6306681'] [{'concept': 'Q502895'}, 'P40', 'Q2669700']
SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) WHERE { { ?e property:P40 resource:Q6306681 . ?e rdf:type ontology:Q502895 } UNION { ?e property:P40 resource:Q2669700 . ?e rdf:type ontology:Q502895 } }
Julia Restoin Roitfeld Cinnamon Chasers
action count
action union
action filter_type
action find_reverse
entity Julia Restoin Roitfeld
relation child
type common name
action filter_type
action find_reverse
entity Cinnamon Chasers
relation child
type common name
[{'concept': 'common name'}, 'child', 'Julia Restoin Roitfeld'] [{'concept': 'common name'}, 'child', 'Cinnamon Chasers']
SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) WHERE { { ?e property:child resource:Julia_Restoin_Roitfeld . ?e rdf:type ontology:common_name } UNION { ?e property:child resource:Cinnamon_Chasers . ?e rdf:type ontology:common_name } }
[]
common name
SYSTEM
2
Q364890 Q656605
(c(Q502895),P40,Q6306681) (c(Q502895),P40,Q2669700)
action count
action union
action filter_type
action find_reverse
entity Q6306681
relation P40
type Q502895
action filter_type
action find_reverse
entity Q2669700
relation P40
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q6306681'] [{'concept': 'Q502895'}, 'P40', 'Q2669700']
SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) WHERE { { ?e property:P40 resource:Q6306681 . ?e rdf:type ontology:Q502895 } UNION { ?e property:P40 resource:Q2669700 . ?e rdf:type ontology:Q502895 } }
Dave Davies Carine Roitfeld
2
action count
action union
action filter_type
action find_reverse
entity Julia Restoin Roitfeld
relation child
type common name
action filter_type
action find_reverse
entity Cinnamon Chasers
relation child
type common name
[{'concept': 'common name'}, 'child', 'Julia Restoin Roitfeld'] [{'concept': 'common name'}, 'child', 'Cinnamon Chasers']
SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) WHERE { { ?e property:child resource:Julia_Restoin_Roitfeld . ?e rdf:type ontology:common_name } UNION { ?e property:child resource:Cinnamon_Chasers . ?e rdf:type ontology:common_name } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581072 Q7938596
P21 P7
Q502895
USER
Which people are siblings of Vladimir Restoin Roitfeld and are a female ?
AND((c(Q502895),P7,Q7938596), (c(Q502895),P21,Q6581072))
action filter_type
action intersection
action find_reverse
entity Q7938596
relation P7
action find_reverse
entity Q6581072
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P7', 'Q7938596'], [{'concept': 'Q502895'}, 'P21', 'Q6581072']]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . ?y property:P7 resource:Q7938596 . ?y property:P21 resource:Q6581072 }
female Vladimir Restoin Roitfeld
action filter_type
action intersection
action find_reverse
entity Vladimir Restoin Roitfeld
relation brother
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'brother', 'Vladimir Restoin Roitfeld'], [{'concept': 'common name'}, 'gender', 'female']]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . ?y property:brother resource:Vladimir_Restoin_Roitfeld . ?y property:gender resource:female }
[]
common name
Q6306681
SYSTEM
Julia Restoin Roitfeld
Q6306681
AND((c(Q502895),P7,Q7938596), (c(Q502895),P21,Q6581072))
action filter_type
action intersection
action find_reverse
entity Q7938596
relation P7
action find_reverse
entity Q6581072
relation P21
type Q502895
[ANSWER] is siblings of Vladimir Restoin Roitfeld and is a female
{'AND': [[{'concept': 'Q502895'}, 'P7', 'Q7938596'], [{'concept': 'Q502895'}, 'P21', 'Q6581072']]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . ?y property:P7 resource:Q7938596 . ?y property:P21 resource:Q6581072 }
Julia Restoin Roitfeld
Julia Restoin Roitfeld is siblings of Vladimir Restoin Roitfeld and is a female
Julia Restoin Roitfeld
action filter_type
action intersection
action find_reverse
entity Vladimir Restoin Roitfeld
relation brother
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'brother', 'Vladimir Restoin Roitfeld'], [{'concept': 'common name'}, 'gender', 'female']]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . ?y property:brother resource:Vladimir_Restoin_Roitfeld . ?y property:gender resource:female }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by atmost 4986 people ?
(c(Q502895),P1303,c(Q34379))
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 4986
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?a ) WHERE { ?x property:P1303 ?f . ?f rdf:type ontology:Q34379 . ?x rdf:type ontology:Q502895 } GROUP BY ?f } . FILTER ( ?a <= 4986 ) }
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 4986
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?a ) WHERE { ?x property:instrument ?f . ?f rdf:type ontology:musical_instrument . ?x rdf:type ontology:common_name } GROUP BY ?f } . FILTER ( ?a <= 4986 ) }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q8338 Q120585 Q713298 Q8371 Q8355 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q1444 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q128309 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 4986
[ANSWERS] are played by atmost 4986 people
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?a ) WHERE { ?x property:P1303 ?f . ?f rdf:type ontology:Q34379 . ?x rdf:type ontology:Q502895 } GROUP BY ?f } . FILTER ( ?a <= 4986 ) }
viola bass guitar 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 trumpet Tsuzumi geomungo cello violin cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano organ cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn drum kit 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 are played by atmost 4986 people
davul harpsichord Wurlitzer electric piano
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 4986
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?x ) AS ?a ) WHERE { ?x property:instrument ?f . ?f rdf:type ontology:musical_instrument . ?x rdf:type ontology:common_name } GROUP BY ?f } . FILTER ( ?a <= 4986 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1759986
P17
Q15617994
USER
Which administrative territory is that musical instrument present in ?
(Q1759986,P17,c(Q15617994))
action filter_type
action find
entity Q1759986
relation P17
type Q15617994
['Q1759986', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . resource:Q1759986 property:P17 ?l }
Wurlitzer electric piano
action filter_type
action find
entity Wurlitzer electric piano
relation country
type designation for an administrative territorial entity
['Wurlitzer electric piano', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Wurlitzer_electric_piano property:country ?l }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q1178361
SYSTEM
Did you mean davul ?
Q1178361 Q81982 Q1759986
(Q1178361,P17,c(Q15617994)) (Q81982,P17,c(Q15617994)) (Q1759986,P17,c(Q15617994))
[ANSWER]
['Q1178361', 'P17', {'concept': 'Q15617994'}] ['Q81982', 'P17', {'concept': 'Q15617994'}] ['Q1759986', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . resource:Q1759986 property:P17 ?l }
davul harpsichord Wurlitzer electric piano
Did you mean davul ?
davul
['davul', 'country', {'concept': 'designation for an administrative territorial entity'}] ['harpsichord', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Wurlitzer electric piano', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Wurlitzer_electric_piano property:country ?l }
[]
Simple Question (Coreferenced)
USER
No, I meant Wurlitzer electric piano. Could you tell me the answer for that?
(Q1759986,P17,c(Q15617994))
Q1759986
['Q1759986', 'P17', {'concept': 'Q15617994'}]
['Wurlitzer electric piano', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q30
SYSTEM
United States of America
Q30
(Q1759986,P17,c(Q15617994))
action filter_type
action find
entity Q1759986
relation P17
type Q15617994
That musical instrument is the [ANSWER]
['Q1759986', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . resource:Q1759986 property:P17 ?l }
United States of America
That musical instrument is the United States of America
United States of America
action filter_type
action find
entity Wurlitzer electric piano
relation country
type designation for an administrative territorial entity
['Wurlitzer electric piano', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Wurlitzer_electric_piano property:country ?l }
[]