Simple Question (Direct)
Simple Question
Q581318
P162
Q502895
USER
Which people produced Love and Other Disasters ?
(Q581318,P162,c(Q502895))
action filter_type
action find
entity Q581318
relation P162
type Q502895
['Q581318', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q581318 property:P162 ?t . ?t rdf:type ontology:Q502895 }
Love and Other Disasters
action filter_type
action find
entity Love and Other Disasters
relation producer
type common name
['Love and Other Disasters', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Love_and_Other_Disasters property:producer ?t . ?t rdf:type ontology:common_name }
[]
common name
Q484779 Q3560774 Q184903
SYSTEM
Luc Besson, Virginie Silla, David Fincher
Q484779 Q3560774 Q2832478 Q184903
(Q581318,P162,c(Q502895))
action filter_type
action find
entity Q581318
relation P162
type Q502895
[ANSWERS] produced Love and Other Disasters
['Q581318', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q581318 property:P162 ?t . ?t rdf:type ontology:Q502895 }
Luc Besson Virginie Silla Alek Keshishian David Fincher
Luc Besson, Virginie Silla and David Fincher produced Love and Other Disasters
Luc Besson Virginie Silla David Fincher
action filter_type
action find
entity Love and Other Disasters
relation producer
type common name
['Love and Other Disasters', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Love_and_Other_Disasters property:producer ?t . ?t rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q484779 Q3560774 Q184903
P162
Q838948
USER
Which works of art have been produced by Luc Besson, Virginie Silla and David Fincher ?
(c(Q838948),P162,Q484779) (c(Q838948),P162,Q3560774) (c(Q838948),P162,Q184903)
action union
action filter_type
action find_reverse
entity Q484779
relation P162
type Q838948
action filter_type
action find_reverse
entity Q3560774
relation P162
type Q838948
action filter_type
action find_reverse
entity Q184903
relation P162
type Q838948
[{'concept': 'Q838948'}, 'P162', 'Q484779'] [{'concept': 'Q838948'}, 'P162', 'Q3560774'] [{'concept': 'Q838948'}, 'P162', 'Q184903']
SELECT DISTINCT ?f WHERE { { ?f property:P162 resource:Q484779 . ?f rdf:type ontology:Q838948 } UNION { ?f property:P162 resource:Q3560774 . ?f rdf:type ontology:Q838948 } }
Luc Besson Virginie Silla David Fincher
action union
action filter_type
action find_reverse
entity Luc Besson
relation producer
type work of art
action filter_type
action find_reverse
entity Virginie Silla
relation producer
type work of art
action filter_type
action find_reverse
entity David Fincher
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Luc Besson'] [{'concept': 'work of art'}, 'producer', 'Virginie Silla'] [{'concept': 'work of art'}, 'producer', 'David Fincher']
SELECT DISTINCT ?f WHERE { { ?f property:producer resource:Luc_Besson . ?f rdf:type ontology:work_of_art } UNION { ?f property:producer resource:Virginie_Silla . ?f rdf:type ontology:work_of_art } }
[]
work of art
Q15624215 Q1140257 Q1057015
SYSTEM
Lucy, The Messenger: The Story of Joan of Arc, Taken 2
Q1144055 Q1057015 Q819972 Q841114 Q689005 Q865346 Q906639 Q2874528 Q59567 Q386210 Q3548954 Q3061609 Q531362 Q1219184 Q954949 Q3055215 Q583869 Q380349 Q756574 Q756572 Q1516852 Q2394091 Q726215 Q550232 Q13435412 Q15961525 Q3231885 Q3548451 Q971941 Q1140257 Q517239 Q634729 Q1771299 Q16781911 Q389466 Q3267522 Q70069 Q355988 Q471913 Q1748143 Q215319 Q3525931 Q277648 Q2880229 Q171193 Q868329 Q19897965 Q815550 Q1518031 Q637087 Q1507299 Q277080 Q754742 Q13383501 Q470507 Q691916 Q1799209 Q165630 Q2533351 Q3210958 Q2709092 Q2078287 Q113549 Q743928 Q4154885 Q18170549 Q581318 Q19961230 Q587407 Q865346 Q782913 Q3061609 Q583869 Q380349 Q1481125 Q971941 Q3525931 Q2880229 Q3373868 Q3210958 Q15624215 Q581318 Q836622 Q581318
(c(Q838948),P162,Q484779) (c(Q838948),P162,Q3560774) (c(Q838948),P162,Q184903)
action union
action filter_type
action find_reverse
entity Q484779
relation P162
type Q838948
action filter_type
action find_reverse
entity Q3560774
relation P162
type Q838948
action filter_type
action find_reverse
entity Q184903
relation P162
type Q838948
[ANSWERS] have been produced by Luc Besson, Virginie Silla and David Fincher
[{'concept': 'Q838948'}, 'P162', 'Q484779'] [{'concept': 'Q838948'}, 'P162', 'Q3560774'] [{'concept': 'Q838948'}, 'P162', 'Q184903']
SELECT DISTINCT ?f WHERE { { ?f property:P162 resource:Q484779 . ?f rdf:type ontology:Q838948 } UNION { ?f property:P162 resource:Q3560774 . ?f rdf:type ontology:Q838948 } }
District 13: Ultimatum Taken 2 The Transporter Transporter 2 Frontier(s) From Paris with Love Wasabi April in Love Tell No One Le Dernier Combat Un prince (presque) charmant Malavita Angel-A Crimson Rivers II: Angels of the Apocalypse The Three Burials of Melquiades Estrada In His Hands Revolver The Extraordinary Adventures of Adèle Blanc-Sec Taxi 4 Taxi 2 Taxi 15 August Taxi Arthur and the Minimoys Brick Mansions The Homesman Les Côtelettes A Castle in Spain The Lady The Messenger: The Story of Joan of Arc The Big Blue Subway Kamikaze Taken 3 Arthur and the Revenge of Maltazard Cold Moon District 13 Fanfan la Tulipe Kiss of the Dragon Michel Vaillant 22 Bullets 3 Days to Kill Taxi 3 The Secret Lockout Colombiana The Lake Transporter 3 Nil by Mouth Home Human Zoo Taken Bandidas Intersections Unleashed Hitman Chaos and Desire A Monster in Paris Atlantis Jack and the Cuckoo-Clock Heart The Source Staten Island Nuovomondo Nikita The Dancer The Transporter Legacy Love and Other Disasters Shut In High Tension From Paris with Love À ton image Malavita Revolver The Extraordinary Adventures of Adèle Blanc-Sec Yamakasi The Lady 3 Days to Kill The Secret Peau d'Ange Jack and the Cuckoo-Clock Heart Lucy Love and Other Disasters Lords of Dogtown Love and Other Disasters
Lucy, The Messenger: The Story of Joan of Arc and Taken 2 have been produced by Luc Besson, Virginie Silla and David Fincher
Lucy The Messenger: The Story of Joan of Arc Taken 2
action union
action filter_type
action find_reverse
entity Luc Besson
relation producer
type work of art
action filter_type
action find_reverse
entity Virginie Silla
relation producer
type work of art
action filter_type
action find_reverse
entity David Fincher
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Luc Besson'] [{'concept': 'work of art'}, 'producer', 'Virginie Silla'] [{'concept': 'work of art'}, 'producer', 'David Fincher']
SELECT DISTINCT ?f WHERE { { ?f property:producer resource:Luc_Besson . ?f rdf:type ontology:work_of_art } UNION { ?f property:producer resource:Virginie_Silla . ?f rdf:type ontology:work_of_art } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1140257
P2554
Q502895
USER
Which person created the production designs of that work of art ?
(Q1140257,P2554,c(Q502895))
action filter_type
action find
entity Q1140257
relation P2554
type Q502895
['Q1140257', 'P2554', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q1140257 property:P2554 ?i . ?i rdf:type ontology:Q502895 }
The Messenger: The Story of Joan of Arc
action filter_type
action find
entity The Messenger: The Story of Joan of Arc
relation production designer
type common name
['The Messenger: The Story of Joan of Arc', 'production designer', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:The_Messenger:_The_Story_of_Joan_of_Arc property:production_designer ?i . ?i rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q1140257
SYSTEM
Did you mean The Messenger: The Story of Joan of Arc ?
Q15624215 Q1140257 Q1057015
(Q15624215,P2554,c(Q502895)) (Q1140257,P2554,c(Q502895)) (Q1057015,P2554,c(Q502895))
[ANSWER]
['Q15624215', 'P2554', {'concept': 'Q502895'}] ['Q1140257', 'P2554', {'concept': 'Q502895'}] ['Q1057015', 'P2554', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q1140257 property:P2554 ?i . ?i rdf:type ontology:Q502895 }
Lucy The Messenger: The Story of Joan of Arc Taken 2
Did you mean The Messenger: The Story of Joan of Arc ?
The Messenger: The Story of Joan of Arc
['Lucy', 'production designer', {'concept': 'common name'}] ['The Messenger: The Story of Joan of Arc', 'production designer', {'concept': 'common name'}] ['Taken 2', 'production designer', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:The_Messenger:_The_Story_of_Joan_of_Arc property:production_designer ?i . ?i rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1140257,P2554,c(Q502895))
['Q1140257', 'P2554', {'concept': 'Q502895'}]
['The Messenger: The Story of Joan of Arc', 'production designer', {'concept': 'common name'}]
[]
Q751178
SYSTEM
Hugues Tissandier
Q751178
(Q1140257,P2554,c(Q502895))
action filter_type
action find
entity Q1140257
relation P2554
type Q502895
[ANSWER] created the production designs of that work of art
['Q1140257', 'P2554', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q1140257 property:P2554 ?i . ?i rdf:type ontology:Q502895 }
Hugues Tissandier
Hugues Tissandier created the production designs of that work of art
Hugues Tissandier
action filter_type
action find
entity The Messenger: The Story of Joan of Arc
relation production designer
type common name
['The Messenger: The Story of Joan of Arc', 'production designer', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:The_Messenger:_The_Story_of_Joan_of_Arc property:production_designer ?i . ?i rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q751178 Q3061609
P2554
Q838948
USER
Does Malavita have that person as the production designer ?
(Q3061609,P2554,Q751178)
action is_in
entity Q751178
action find
entity Q3061609
relation P2554
['Q3061609', 'P2554', 'Q751178']
ASK WHERE { resource:Q3061609 property:P2554 resource:Q751178 }
Hugues Tissandier Malavita
action is_in
entity Hugues Tissandier
action find
entity Malavita
relation production designer
['Malavita', 'production designer', 'Hugues Tissandier']
ASK WHERE { resource:Malavita property:production_designer resource:Hugues_Tissandier }
[]
work of art
SYSTEM
YES
(Q3061609,P2554,Q751178)
action is_in
entity Q751178
action find
entity Q3061609
relation P2554
[ANSWER]
['Q3061609', 'P2554', 'Q751178']
ASK WHERE { resource:Q3061609 property:P2554 resource:Q751178 }
Yes
action is_in
entity Hugues Tissandier
action find
entity Malavita
relation production designer
['Malavita', 'production designer', 'Hugues Tissandier']
ASK WHERE { resource:Malavita property:production_designer resource:Hugues_Tissandier }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by atleast 91 people ?
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 91
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { FILTER ( ?f >= 91 ) . { SELECT DISTINCT ?v ( COUNT ( ?r ) AS ?f ) WHERE { ?r property:P1303 ?v . ?v rdf:type ontology:Q34379 . ?r rdf:type ontology:Q502895 } GROUP BY ?v } }
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 91
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { FILTER ( ?f >= 91 ) . { SELECT DISTINCT ?v ( COUNT ( ?r ) AS ?f ) WHERE { ?r property:instrument ?v . ?v rdf:type ontology:musical_instrument . ?r rdf:type ontology:common_name } GROUP BY ?v } }
[]
musical instrument common name
SYSTEM
12
Q80284 Q46185 Q80019 Q5994 Q81982 Q206987 Q8338 Q8371 Q8355 Q1444 Q128309 Q1343007
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 91
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { FILTER ( ?f >= 91 ) . { SELECT DISTINCT ?v ( COUNT ( ?r ) AS ?f ) WHERE { ?r property:P1303 ?v . ?v rdf:type ontology:Q34379 . ?r rdf:type ontology:Q502895 } GROUP BY ?v } }
viola bass guitar double bass piano harpsichord vibraphone trumpet cello violin organ drum kit electronic keyboard
12
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 91
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { FILTER ( ?f >= 91 ) . { SELECT DISTINCT ?v ( COUNT ( ?r ) AS ?f ) WHERE { ?r property:instrument ?v . ?v rdf:type ontology:musical_instrument . ?r rdf:type ontology:common_name } GROUP BY ?v } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q3560774
P25 P21
Q502895
USER
Which people have Virginie Silla as mother and are a male ?
AND((c(Q502895),P25,Q3560774), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q3560774
relation P25
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P25', 'Q3560774'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?y WHERE { ?y property:P25 resource:Q3560774 . ?y property:P21 resource:Q6581097 . ?y rdf:type ontology:Q502895 }
male Virginie Silla
action filter_type
action intersection
action find_reverse
entity Virginie Silla
relation mother
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'mother', 'Virginie Silla'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?y WHERE { ?y property:mother resource:Virginie_Silla . ?y property:gender resource:male . ?y rdf:type ontology:common_name }
[]
common name
Q23011129
SYSTEM
Mao Besson
Q23011129
AND((c(Q502895),P25,Q3560774), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q3560774
relation P25
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] have Virginie Silla as mother and are a male
{'AND': [[{'concept': 'Q502895'}, 'P25', 'Q3560774'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?y WHERE { ?y property:P25 resource:Q3560774 . ?y property:P21 resource:Q6581097 . ?y rdf:type ontology:Q502895 }
Mao Besson
Mao Besson have Virginie Silla as mother and are a male
Mao Besson
action filter_type
action intersection
action find_reverse
entity Virginie Silla
relation mother
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'mother', 'Virginie Silla'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?y WHERE { ?y property:mother resource:Virginie_Silla . ?y property:gender resource:male . ?y rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q23011129 Q2442357
P22
Q502895
USER
Was Thomas Aird the father of Mao Besson ?
(Q23011129,P22,Q2442357)
action is_in
entity Q2442357
action find
entity Q23011129
relation P22
['Q23011129', 'P22', 'Q2442357']
ASK WHERE { resource:Q23011129 property:P22 resource:Q2442357 }
Mao Besson Thomas Aird
action is_in
entity Thomas Aird
action find
entity Mao Besson
relation father
['Mao Besson', 'father', 'Thomas Aird']
ASK WHERE { resource:Mao_Besson property:father resource:Thomas_Aird }
[]
common name
SYSTEM
NO
(Q23011129,P22,Q2442357)
action is_in
entity Q2442357
action find
entity Q23011129
relation P22
[ANSWER]
['Q23011129', 'P22', 'Q2442357']
ASK WHERE { resource:Q23011129 property:P22 resource:Q2442357 }
No
action is_in
entity Thomas Aird
action find
entity Mao Besson
relation father
['Mao Besson', 'father', 'Thomas Aird']
ASK WHERE { resource:Mao_Besson property:father resource:Thomas_Aird }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1140257 Q1362474
P161
Q502895
USER
Is Timothy West in The Messenger: The Story of Joan of Arc ?
(Q1140257,P161,Q1362474)
action is_in
entity Q1362474
action find
entity Q1140257
relation P161
['Q1140257', 'P161', 'Q1362474']
ASK WHERE { resource:Q1140257 property:P161 resource:Q1362474 }
The Messenger: The Story of Joan of Arc Timothy West
action is_in
entity Timothy West
action find
entity The Messenger: The Story of Joan of Arc
relation cast member
['The Messenger: The Story of Joan of Arc', 'cast member', 'Timothy West']
ASK WHERE { resource:The_Messenger:_The_Story_of_Joan_of_Arc property:cast_member resource:Timothy_West }
[]
common name
SYSTEM
YES
(Q1140257,P161,Q1362474)
action is_in
entity Q1362474
action find
entity Q1140257
relation P161
[ANSWER]
['Q1140257', 'P161', 'Q1362474']
ASK WHERE { resource:Q1140257 property:P161 resource:Q1362474 }
Yes
action is_in
entity Timothy West
action find
entity The Messenger: The Story of Joan of Arc
relation cast member
['The Messenger: The Story of Joan of Arc', 'cast member', 'Timothy West']
ASK WHERE { resource:The_Messenger:_The_Story_of_Joan_of_Arc property:cast_member resource:Timothy_West }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q581318 Q565876
P495
Q15617994
USER
Is Kirchsahr the origin of Love and Other Disasters ?
(Q581318,P495,Q565876)
action is_in
entity Q565876
action find
entity Q581318
relation P495
['Q581318', 'P495', 'Q565876']
ASK WHERE { resource:Q581318 property:P495 resource:Q565876 }
Love and Other Disasters Kirchsahr
action is_in
entity Kirchsahr
action find
entity Love and Other Disasters
relation country of origin
['Love and Other Disasters', 'country of origin', 'Kirchsahr']
ASK WHERE { resource:Love_and_Other_Disasters property:country_of_origin resource:Kirchsahr }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q581318,P495,Q565876)
action is_in
entity Q565876
action find
entity Q581318
relation P495
[ANSWER]
['Q581318', 'P495', 'Q565876']
ASK WHERE { resource:Q581318 property:P495 resource:Q565876 }
No
action is_in
entity Kirchsahr
action find
entity Love and Other Disasters
relation country of origin
['Love and Other Disasters', 'country of origin', 'Kirchsahr']
ASK WHERE { resource:Love_and_Other_Disasters property:country_of_origin resource:Kirchsahr }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q23011129 Q484779 Q3176649
P22
Q502895
USER
Does Mao Besson have Luc Besson and Jefferson J. DeBlanc as a father ?
(Q23011129,P22,Q484779) (Q23011129,P22,Q3176649)
action is_in
entity Q23011129
action intersection
action find_reverse
entity Q484779
relation P22
action find_reverse
entity Q3176649
relation P22
['Q23011129', 'P22', 'Q484779'] ['Q23011129', 'P22', 'Q3176649']
ASK WHERE { resource:Q23011129 property:P22 resource:Q484779 . resource:Q23011129 property:P22 resource:Q3176649 }
Mao Besson Luc Besson Jefferson J. DeBlanc
action is_in
entity Mao Besson
action intersection
action find_reverse
entity Luc Besson
relation father
action find_reverse
entity Jefferson J. DeBlanc
relation father
['Mao Besson', 'father', 'Luc Besson'] ['Mao Besson', 'father', 'Jefferson J. DeBlanc']
ASK WHERE { resource:Mao_Besson property:father resource:Luc_Besson . resource:Mao_Besson property:father resource:Jefferson_J._DeBlanc }
[]
common name
SYSTEM
YES and NO respectively
(Q23011129,P22,Q484779) (Q23011129,P22,Q3176649)
action is_in
entity Q23011129
action intersection
action find_reverse
entity Q484779
relation P22
action find_reverse
entity Q3176649
relation P22
[ANSWER]
['Q23011129', 'P22', 'Q484779'] ['Q23011129', 'P22', 'Q3176649']
ASK WHERE { resource:Q23011129 property:P22 resource:Q484779 . resource:Q23011129 property:P22 resource:Q3176649 }
YES and NO respectively
action is_in
entity Mao Besson
action intersection
action find_reverse
entity Luc Besson
relation father
action find_reverse
entity Jefferson J. DeBlanc
relation father
['Mao Besson', 'father', 'Luc Besson'] ['Mao Besson', 'father', 'Jefferson J. DeBlanc']
ASK WHERE { resource:Mao_Besson property:father resource:Luc_Besson . resource:Mao_Besson property:father resource:Jefferson_J._DeBlanc }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can atleast 3350 people perform with ?
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3350
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?d WHERE { FILTER ( ?p >= 3350 ) . { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?p ) WHERE { ?o property:P1303 ?d . ?d rdf:type ontology:Q34379 . ?o rdf:type ontology:Q502895 } GROUP BY ?d } }
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3350
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?d WHERE { FILTER ( ?p >= 3350 ) . { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?p ) WHERE { ?o property:instrument ?d . ?d rdf:type ontology:musical_instrument . ?o rdf:type ontology:common_name } GROUP BY ?d } }
[]
musical instrument common name
Q5994 Q8355
SYSTEM
piano, violin
Q5994 Q8355
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3350
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?d WHERE { FILTER ( ?p >= 3350 ) . { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?p ) WHERE { ?o property:P1303 ?d . ?d rdf:type ontology:Q34379 . ?o rdf:type ontology:Q502895 } GROUP BY ?d } }
piano violin
Which musical instruments can atleast 3350 people perform with
piano violin
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3350
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?d WHERE { FILTER ( ?p >= 3350 ) . { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?p ) WHERE { ?o property:instrument ?d . ?d rdf:type ontology:musical_instrument . ?o rdf:type ontology:common_name } GROUP BY ?d } }
[]