Simple Question (Direct)
Simple Question
Q512974
P1303
Q34379
USER
Which musical instrument does Julia Marcell know to play ?
(Q512974,P1303,c(Q34379))
action filter_type
action find
entity Q512974
relation P1303
type Q34379
['Q512974', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q34379 . resource:Q512974 property:P1303 ?u }
Julia Marcell
action filter_type
action find
entity Julia Marcell
relation instrument
type musical instrument
['Julia Marcell', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:musical_instrument . resource:Julia_Marcell property:instrument ?u }
[]
musical instrument
Q5994
SYSTEM
piano
Q5994
(Q512974,P1303,c(Q34379))
action filter_type
action find
entity Q512974
relation P1303
type Q34379
Julia Marcell knows the [ANSWER]
['Q512974', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q34379 . resource:Q512974 property:P1303 ?u }
piano
Julia Marcell knows the piano
piano
action filter_type
action find
entity Julia Marcell
relation instrument
type musical instrument
['Julia Marcell', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:musical_instrument . resource:Julia_Marcell property:instrument ?u }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q512974
P21
Q290
USER
Which sex does that person belong to ?
(Q5994,P21,c(Q290))
action filter_type
action find
entity Q512974
relation P21
type Q290
['Q5994', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q512974 property:P21 ?q . ?q rdf:type ontology:Q290 }
Julia Marcell
action filter_type
action find
entity Julia Marcell
relation gender
type sex
['piano', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Julia_Marcell property:gender ?q . ?q rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q5994,P21,c(Q290))
action filter_type
action find
entity Q512974
relation P21
type Q290
That person belongs to [ANSWER]
['Q5994', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q512974 property:P21 ?q . ?q rdf:type ontology:Q290 }
female
That person belongs to female
female
action filter_type
action find
entity Julia Marcell
relation gender
type sex
['piano', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Julia_Marcell property:gender ?q . ?q rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q512974
P136
Q151885
USER
What can be considered as category for that person ?
(Q6581072,P136,c(Q151885))
action filter_type
action find
entity Q512974
relation P136
type Q151885
['Q6581072', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?q WHERE { resource:Q512974 property:P136 ?q . ?q rdf:type ontology:Q151885 }
Julia Marcell
action filter_type
action find
entity Julia Marcell
relation genre
type concept
['female', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?q WHERE { resource:Julia_Marcell property:genre ?q . ?q rdf:type ontology:concept }
[]
concept
Q46046
SYSTEM
baroque pop
Q46046
(Q6581072,P136,c(Q151885))
action filter_type
action find
entity Q512974
relation P136
type Q151885
[ANSWER] can be considered as category for that person
['Q6581072', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?q WHERE { resource:Q512974 property:P136 ?q . ?q rdf:type ontology:Q151885 }
baroque pop
Baroque pop can be considered as category for that person
baroque pop
action filter_type
action find
entity Julia Marcell
relation genre
type concept
['female', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?q WHERE { resource:Julia_Marcell property:genre ?q . ?q rdf:type ontology:concept }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P706
Q82794 Q271669 Q151885
USER
How many concepts are located in around 2 geographic regions or landforms ?
(c(Q151885),P706,c(Q82794)|c(Q271669))
action count
action approx
action union
action find_tuple_counts
relation P706
type Q151885
type Q82794
action find_tuple_counts
relation P706
type Q151885
type Q271669
value 2
[{'concept': 'Q151885'}, 'P706', [{'concept': 'Q82794'}, {'concept': 'Q271669'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) ?z WHERE { ?w rdf:type ?c . VALUES ( ?c ) { ( ontology:Q82794 ) ( ontology:Q271669 ) } } GROUP BY ?z } . FILTER ( ?m = 2 ) }
action count
action approx
action union
action find_tuple_counts
relation located on terrain feature
type concept
type geographic region
action find_tuple_counts
relation located on terrain feature
type concept
type landform
value 2
[{'concept': 'concept'}, 'located on terrain feature', [{'concept': 'geographic region'}, {'concept': 'landform'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) ?z WHERE { ?w rdf:type ?c . VALUES ( ?c ) { ( ontology:geographic_region ) ( ontology:landform ) } } GROUP BY ?z } . FILTER ( ?m = 2 ) }
[]
geographic region landform concept
SYSTEM
2
Q1807594 Q2556093
(c(Q151885),P706,c(Q82794)|c(Q271669))
action count
action approx
action union
action find_tuple_counts
relation P706
type Q151885
type Q82794
action find_tuple_counts
relation P706
type Q151885
type Q271669
value 2
[ANSWER]
[{'concept': 'Q151885'}, 'P706', [{'concept': 'Q82794'}, {'concept': 'Q271669'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) ?z WHERE { ?w rdf:type ?c . VALUES ( ?c ) { ( ontology:Q82794 ) ( ontology:Q271669 ) } } GROUP BY ?z } . FILTER ( ?m = 2 ) }
Luco-Meluno culture Gumelniţa–Karanovo culture
2
action count
action approx
action union
action find_tuple_counts
relation located on terrain feature
type concept
type geographic region
action find_tuple_counts
relation located on terrain feature
type concept
type landform
value 2
[{'concept': 'concept'}, 'located on terrain feature', [{'concept': 'geographic region'}, {'concept': 'landform'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) ?z WHERE { ?w rdf:type ?c . VALUES ( ?c ) { ( ontology:geographic_region ) ( ontology:landform ) } } GROUP BY ?z } . FILTER ( ?m = 2 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q512974
P27
Q15617994
USER
Which administrative territory is Julia Marcell a civilian of ?
(Q512974,P27,c(Q15617994))
action filter_type
action find
entity Q512974
relation P27
type Q15617994
['Q512974', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q512974 property:P27 ?q }
Julia Marcell
action filter_type
action find
entity Julia Marcell
relation country of citizenship
type designation for an administrative territorial entity
['Julia Marcell', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Julia_Marcell property:country_of_citizenship ?q }
[]
designation for an administrative territorial entity
Q36
SYSTEM
Poland
Q36
(Q512974,P27,c(Q15617994))
action filter_type
action find
entity Q512974
relation P27
type Q15617994
Which administrative territory is Julia Marcell a civilian of
['Q512974', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q512974 property:P27 ?q }
Poland
Which administrative territory is Julia Marcell a civilian of
Poland
action filter_type
action find
entity Julia Marcell
relation country of citizenship
type designation for an administrative territorial entity
['Julia Marcell', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Julia_Marcell property:country_of_citizenship ?q }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q512974
P106
Q12737077
USER
What are the job of that person ?
(Q36,P106,c(Q12737077))
action filter_type
action find
entity Q512974
relation P106
type Q12737077
['Q36', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q512974 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
Julia Marcell
action filter_type
action find
entity Julia Marcell
relation occupation
type occupation
['Poland', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Julia_Marcell property:occupation ?l . ?l rdf:type ontology:occupation }
[]
occupation
Q177220 Q486748
SYSTEM
singer, pianist
Q177220 Q486748
(Q36,P106,c(Q12737077))
action filter_type
action find
entity Q512974
relation P106
type Q12737077
The job of that person are the [ANSWERS]
['Q36', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q512974 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
singer pianist
The job of that person are the singer and pianist
singer pianist
action filter_type
action find
entity Julia Marcell
relation occupation
type occupation
['Poland', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Julia_Marcell property:occupation ?l . ?l rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q151885 Q18783400 Q17335294
USER
How many concepts are depicted in approximately 1 genres of sculpture and coats of arms ?
(c(Q18783400)|c(Q17335294),P180,c(Q151885))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q151885
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q151885
type Q17335294
value 1
[[{'concept': 'Q18783400'}, {'concept': 'Q17335294'}], 'P180', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) ?g WHERE { { ?g rdf:type ontology:Q151885 . ?p rdf:type ontology:Q18783400 . ?p property:P180 ?g } UNION { ?p property:P180 ?g . ?g rdf:type ontology:Q151885 . ?p rdf:type ontology:Q17335294 } } GROUP BY ?g } . FILTER ( ?v = 1 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type concept
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type concept
type flag or coat of arms
value 1
[[{'concept': 'genre of sculpture'}, {'concept': 'flag or coat of arms'}], 'depicts', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) ?g WHERE { { ?g rdf:type ontology:concept . ?p rdf:type ontology:genre_of_sculpture . ?p property:depicts ?g } UNION { ?p property:depicts ?g . ?g rdf:type ontology:concept . ?p rdf:type ontology:flag_or_coat_of_arms } } GROUP BY ?g } . FILTER ( ?v = 1 ) }
[]
concept genre of sculpture flag or coat of arms
SYSTEM
66
Q254508 Q193373 Q13381863 Q2304859 Q2472587 Q7743 Q188353 Q34023 Q454 Q177923 Q8436 Q14467155 Q177826 Q189829 Q48942 Q1968442 Q170430 Q482980 Q12004621 Q11513337 Q12773225 Q2207288 Q126236 Q15980704 Q273283 Q124216 Q703534 Q272735 Q17176618 Q38433 Q48282 Q113904 Q43616 Q1146843 Q1714828 Q2979 Q25443024 Q4964182 Q11399 Q40953 Q213449 Q527 Q327055 Q877674 Q6388 Q203872 Q6537379 Q2083958 Q855091 Q2066131 Q3562775 Q931260 Q192581 Q18120029 Q18121798 Q876776 Q10843402 Q179637 Q5167661 Q3035707 Q1862087 Q1134237 Q10294 Q1125062 Q13382576 Q7234072
(c(Q18783400)|c(Q17335294),P180,c(Q151885))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q151885
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q151885
type Q17335294
value 1
[ANSWER]
[[{'concept': 'Q18783400'}, {'concept': 'Q17335294'}], 'P180', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) ?g WHERE { { ?g rdf:type ontology:Q151885 . ?p rdf:type ontology:Q18783400 . ?p property:P180 ?g } UNION { ?p property:P180 ?g . ?g rdf:type ontology:Q151885 . ?p rdf:type ontology:Q17335294 } } GROUP BY ?g } . FILTER ( ?v = 1 ) }
outlaw Gordian knot fencer sovereign people home Welsh people tumulus peace auction family gaze clergy hermit pupil donor predation author fortune-teller athletics competitor slave craft conquistador matchmaker beggar Swiss people employee tree smuggler Newton's laws of motion student Radha mummy anchorite hunter liberty to walk philosopher rock music prayer eating sky worker touch human swimming being walking pattern guitarist sportsperson thief murderer job bibliophile lovers' embrace drinking swimmer prisoner of war justice gift prisoner court poverty rebel rower postal worker
66
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type concept
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type concept
type flag or coat of arms
value 1
[[{'concept': 'genre of sculpture'}, {'concept': 'flag or coat of arms'}], 'depicts', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) ?g WHERE { { ?g rdf:type ontology:concept . ?p rdf:type ontology:genre_of_sculpture . ?p property:depicts ?g } UNION { ?p property:depicts ?g . ?g rdf:type ontology:concept . ?p rdf:type ontology:flag_or_coat_of_arms } } GROUP BY ?g } . FILTER ( ?v = 1 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q190172
P870
Q34379 Q9748 Q15850590
USER
Which musical instruments are used in more number of concertoes and theatrical genres than cymbal ?
(c(Q9748)|c(Q15850590),P870,c(Q34379))
action greater
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q9748
action find_reverse_tuple_counts
relation P870
type Q34379
type Q15850590
action count
action filter_multi_types
action find_reverse
entity Q190172
relation P870
type Q9748
type Q15850590
[[{'concept': 'Q9748'}, {'concept': 'Q15850590'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) WHERE { ?k property:P870 resource:Q190172 . { { ?k rdf:type ontology:Q9748 } UNION { ?k rdf:type ontology:Q15850590 } } } } . FILTER ( ?c > ?j ) . { SELECT DISTINCT ?s ( COUNT ( ?d ) AS ?c ) WHERE { { ?s rdf:type ontology:Q34379 . ?d rdf:type ontology:Q9748 . ?d property:P870 ?s } UNION { ?s rdf:type ontology:Q34379 . ?d rdf:type ontology:Q15850590 . ?d property:P870 ?s } } GROUP BY ?s } }
cymbal
action greater
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type concerto
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type theatrical genre
action count
action filter_multi_types
action find_reverse
entity cymbal
relation instrumentation
type concerto
type theatrical genre
[[{'concept': 'concerto'}, {'concept': 'theatrical genre'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) WHERE { ?k property:instrumentation resource:cymbal . { { ?k rdf:type ontology:concerto } UNION { ?k rdf:type ontology:theatrical_genre } } } } . FILTER ( ?c > ?j ) . { SELECT DISTINCT ?s ( COUNT ( ?d ) AS ?c ) WHERE { { ?s rdf:type ontology:musical_instrument . ?d rdf:type ontology:concerto . ?d property:instrumentation ?s } UNION { ?s rdf:type ontology:musical_instrument . ?d rdf:type ontology:theatrical_genre . ?d property:instrumentation ?s } } GROUP BY ?s } }
[]
musical instrument concerto theatrical genre
Q5994 Q81982 Q80284
SYSTEM
piano, harpsichord, viola
Q80284 Q8371 Q5994 Q1444 Q8355 Q81982
(c(Q9748)|c(Q15850590),P870,c(Q34379))
action greater
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q9748
action find_reverse_tuple_counts
relation P870
type Q34379
type Q15850590
action count
action filter_multi_types
action find_reverse
entity Q190172
relation P870
type Q9748
type Q15850590
[ANSWERS] are used in more number of concertoes and theatrical genres than cymbal
[[{'concept': 'Q9748'}, {'concept': 'Q15850590'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) WHERE { ?k property:P870 resource:Q190172 . { { ?k rdf:type ontology:Q9748 } UNION { ?k rdf:type ontology:Q15850590 } } } } . FILTER ( ?c > ?j ) . { SELECT DISTINCT ?s ( COUNT ( ?d ) AS ?c ) WHERE { { ?s rdf:type ontology:Q34379 . ?d rdf:type ontology:Q9748 . ?d property:P870 ?s } UNION { ?s rdf:type ontology:Q34379 . ?d rdf:type ontology:Q15850590 . ?d property:P870 ?s } } GROUP BY ?s } }
viola cello piano organ violin harpsichord
Piano, harpsichord and viola are used in more number of concertoes and theatrical genres than cymbal
piano harpsichord viola
action greater
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type concerto
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type theatrical genre
action count
action filter_multi_types
action find_reverse
entity cymbal
relation instrumentation
type concerto
type theatrical genre
[[{'concept': 'concerto'}, {'concept': 'theatrical genre'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?j ) WHERE { ?k property:instrumentation resource:cymbal . { { ?k rdf:type ontology:concerto } UNION { ?k rdf:type ontology:theatrical_genre } } } } . FILTER ( ?c > ?j ) . { SELECT DISTINCT ?s ( COUNT ( ?d ) AS ?c ) WHERE { { ?s rdf:type ontology:musical_instrument . ?d rdf:type ontology:concerto . ?d property:instrumentation ?s } UNION { ?s rdf:type ontology:musical_instrument . ?d rdf:type ontology:theatrical_genre . ?d property:instrumentation ?s } } GROUP BY ?s } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q521151
P870
Q34379 Q9748 Q15850590
USER
And what about baryton?
(c(Q9748)|c(Q15850590),P870,c(Q34379))
action greater
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q9748
action find_reverse_tuple_counts
relation P870
type Q34379
type Q15850590
action count
action filter_multi_types
action find_reverse
entity Q521151
relation P870
type Q9748
type Q15850590
[[{'concept': 'Q9748'}, {'concept': 'Q15850590'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?y ) AS ?d ) WHERE { { ?y property:P870 ?a . ?a rdf:type ontology:Q34379 . ?y rdf:type ontology:Q15850590 } UNION { ?a rdf:type ontology:Q34379 . ?y rdf:type ontology:Q9748 . ?y property:P870 ?a } } GROUP BY ?a } . FILTER ( ?d > ?e ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { ?u property:P870 resource:Q521151 . { { ?u rdf:type ontology:Q9748 } UNION { ?u rdf:type ontology:Q15850590 } } } } }
baryton
action greater
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type concerto
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type theatrical genre
action count
action filter_multi_types
action find_reverse
entity baryton
relation instrumentation
type concerto
type theatrical genre
[[{'concept': 'concerto'}, {'concept': 'theatrical genre'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?y ) AS ?d ) WHERE { { ?y property:instrumentation ?a . ?a rdf:type ontology:musical_instrument . ?y rdf:type ontology:theatrical_genre } UNION { ?a rdf:type ontology:musical_instrument . ?y rdf:type ontology:concerto . ?y property:instrumentation ?a } } GROUP BY ?a } . FILTER ( ?d > ?e ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { ?u property:instrumentation resource:baryton . { { ?u rdf:type ontology:concerto } UNION { ?u rdf:type ontology:theatrical_genre } } } } }
[]
musical instrument concerto theatrical genre
Q5994 Q81982 Q80284
SYSTEM
piano, harpsichord, viola
Q80284 Q8371 Q5994 Q1444 Q8355 Q81982
(c(Q9748)|c(Q15850590),P870,c(Q34379))
action greater
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q9748
action find_reverse_tuple_counts
relation P870
type Q34379
type Q15850590
action count
action filter_multi_types
action find_reverse
entity Q521151
relation P870
type Q9748
type Q15850590
[ANSWERS]
[[{'concept': 'Q9748'}, {'concept': 'Q15850590'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?y ) AS ?d ) WHERE { { ?y property:P870 ?a . ?a rdf:type ontology:Q34379 . ?y rdf:type ontology:Q15850590 } UNION { ?a rdf:type ontology:Q34379 . ?y rdf:type ontology:Q9748 . ?y property:P870 ?a } } GROUP BY ?a } . FILTER ( ?d > ?e ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { ?u property:P870 resource:Q521151 . { { ?u rdf:type ontology:Q9748 } UNION { ?u rdf:type ontology:Q15850590 } } } } }
viola cello piano organ violin harpsichord
piano harpsichord viola
action greater
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type concerto
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type theatrical genre
action count
action filter_multi_types
action find_reverse
entity baryton
relation instrumentation
type concerto
type theatrical genre
[[{'concept': 'concerto'}, {'concept': 'theatrical genre'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?y ) AS ?d ) WHERE { { ?y property:instrumentation ?a . ?a rdf:type ontology:musical_instrument . ?y rdf:type ontology:theatrical_genre } UNION { ?a rdf:type ontology:musical_instrument . ?y rdf:type ontology:concerto . ?y property:instrumentation ?a } } GROUP BY ?a } . FILTER ( ?d > ?e ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { ?u property:instrumentation resource:baryton . { { ?u rdf:type ontology:concerto } UNION { ?u rdf:type ontology:theatrical_genre } } } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q21208980
P1303
Q502895
USER
Does Pietro Renzi play those musical instruments ?
(Q21208980,P1303,Q5994) (Q21208980,P1303,Q81982) (Q21208980,P1303,Q80284)
action is_in
entity prev_answer
action find
entity Q21208980
relation P1303
['Q21208980', 'P1303', 'Q5994'] ['Q21208980', 'P1303', 'Q81982'] ['Q21208980', 'P1303', 'Q80284']
ASK WHERE { VALUES ( ?d ) { ( resource:Q80284 ) ( resource:Q8371 ) ( resource:Q5994 ) } . resource:Q21208980 property:P1303 ?d }
Pietro Renzi
action is_in
entity prev_answer
action find
entity Pietro Renzi
relation instrument
['Pietro Renzi', 'instrument', 'piano'] ['Pietro Renzi', 'instrument', 'harpsichord'] ['Pietro Renzi', 'instrument', 'viola']
ASK WHERE { VALUES ( ?d ) { ( resource:viola ) ( resource:cello ) ( resource:piano ) } . resource:Pietro_Renzi property:instrument ?d }
[]
common name
SYSTEM
NO
(Q21208980,P1303,Q5994) (Q21208980,P1303,Q81982) (Q21208980,P1303,Q80284)
action is_in
entity prev_answer
action find
entity Q21208980
relation P1303
[ANSWER]
['Q21208980', 'P1303', 'Q5994'] ['Q21208980', 'P1303', 'Q81982'] ['Q21208980', 'P1303', 'Q80284']
ASK WHERE { VALUES ( ?d ) { ( resource:Q80284 ) ( resource:Q8371 ) ( resource:Q5994 ) } . resource:Q21208980 property:P1303 ?d }
No
action is_in
entity prev_answer
action find
entity Pietro Renzi
relation instrument
['Pietro Renzi', 'instrument', 'piano'] ['Pietro Renzi', 'instrument', 'harpsichord'] ['Pietro Renzi', 'instrument', 'viola']
ASK WHERE { VALUES ( ?d ) { ( resource:viola ) ( resource:cello ) ( resource:piano ) } . resource:Pietro_Renzi property:instrument ?d }
[]