Simple Question (Direct)
Simple Question
Q682002
P272
Q43229
USER
Who produced Scoop ?
(Q682002,P272,c(Q43229))
action filter_type
action find
entity Q682002
relation P272
type Q43229
['Q682002', 'P272', {'concept': 'Q43229'}]
SELECT DISTINCT ?f WHERE { resource:Q682002 property:P272 ?f . ?f rdf:type ontology:Q43229 }
Scoop
action filter_type
action find
entity Scoop
relation production company
type organization
['Scoop', 'production company', {'concept': 'organization'}]
SELECT DISTINCT ?f WHERE { resource:Scoop property:production_company ?f . ?f rdf:type ontology:organization }
[]
organization
Q646968
SYSTEM
Ingenious Media
Q646968
(Q682002,P272,c(Q43229))
action filter_type
action find
entity Q682002
relation P272
type Q43229
Media [ANSWER] produced Scoop
['Q682002', 'P272', {'concept': 'Q43229'}]
SELECT DISTINCT ?f WHERE { resource:Q682002 property:P272 ?f . ?f rdf:type ontology:Q43229 }
Ingenious Media
Media Ingenious Media produced Scoop
Ingenious Media
action filter_type
action find
entity Scoop
relation production company
type organization
['Scoop', 'production company', {'concept': 'organization'}]
SELECT DISTINCT ?f WHERE { resource:Scoop property:production_company ?f . ?f rdf:type ontology:organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q682002
P58
Q502895
USER
Who wrote the screenplay for Scoop ?
(Q682002,P58,c(Q502895))
action filter_type
action find
entity Q682002
relation P58
type Q502895
['Q682002', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q682002 property:P58 ?v . ?v rdf:type ontology:Q502895 }
Scoop
action filter_type
action find
entity Scoop
relation screenwriter
type common name
['Scoop', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Scoop property:screenwriter ?v . ?v rdf:type ontology:common_name }
[]
common name
Q25089
SYSTEM
Woody Allen
Q25089
(Q682002,P58,c(Q502895))
action filter_type
action find
entity Q682002
relation P58
type Q502895
Script [ANSWER] wrote the screenplay for Scoop
['Q682002', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q682002 property:P58 ?v . ?v rdf:type ontology:Q502895 }
Woody Allen
Script Woody Allen wrote the screenplay for Scoop
Woody Allen
action filter_type
action find
entity Scoop
relation screenwriter
type common name
['Scoop', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Scoop property:screenwriter ?v . ?v rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Difference|Single_Relation
Q1320806 Q682002
P161
Q502895
USER
Which people starred in Scoop but not Mirrors ?
AND((Q682002,P161,c(Q502895)), NOT((Q1320806,P161,c(Q502895))))
action filter_type
action difference
action find
entity Q682002
relation P161
action find
entity Q1320806
relation P161
type Q502895
{'AND': [['Q682002', 'P161', {'concept': 'Q502895'}], {'NOT': [['Q1320806', 'P161', {'concept': 'Q502895'}]]}]}
SELECT DISTINCT ?f WHERE { resource:Q682002 property:P161 ?f . MINUS { resource:Q1320806 property:P161 ?f } . ?f rdf:type ontology:Q502895 }
Mirrors Scoop
action filter_type
action difference
action find
entity Scoop
relation cast member
action find
entity Mirrors
relation cast member
type common name
{'AND': [['Scoop', 'cast member', {'concept': 'common name'}], {'NOT': [['Mirrors', 'cast member', {'concept': 'common name'}]]}]}
SELECT DISTINCT ?f WHERE { resource:Scoop property:cast_member ?f . MINUS { resource:Mirrors property:cast_member ?f } . ?f rdf:type ontology:common_name }
[]
common name
Q335376 Q234546 Q309690 Q34436 Q129591 Q25089 Q342962 Q234141
SYSTEM
Kevin McNally, Romola Garai, Charles Dance, Scarlett Johansson, Hugh Jackman, Woody Allen, Anthony Head, Ian McShane
Q335376 Q234546 Q309690 Q34436 Q129591 Q25089 Q342962 Q234141
AND((Q682002,P161,c(Q502895)), NOT((Q1320806,P161,c(Q502895))))
action filter_type
action difference
action find
entity Q682002
relation P161
action find
entity Q1320806
relation P161
type Q502895
[ANSWERS] starred in Scoop but not Mirrors
{'AND': [['Q682002', 'P161', {'concept': 'Q502895'}], {'NOT': [['Q1320806', 'P161', {'concept': 'Q502895'}]]}]}
SELECT DISTINCT ?f WHERE { resource:Q682002 property:P161 ?f . MINUS { resource:Q1320806 property:P161 ?f } . ?f rdf:type ontology:Q502895 }
Kevin McNally Romola Garai Charles Dance Scarlett Johansson Hugh Jackman Woody Allen Anthony Head Ian McShane
Kevin McNally, Romola Garai, Charles Dance, Scarlett Johansson, Hugh Jackman, Woody Allen, Anthony Head and Ian McShane starred in Scoop but not Mirrors
Kevin McNally Romola Garai Charles Dance Scarlett Johansson Hugh Jackman Woody Allen Anthony Head Ian McShane
action filter_type
action difference
action find
entity Scoop
relation cast member
action find
entity Mirrors
relation cast member
type common name
{'AND': [['Scoop', 'cast member', {'concept': 'common name'}], {'NOT': [['Mirrors', 'cast member', {'concept': 'common name'}]]}]}
SELECT DISTINCT ?f WHERE { resource:Scoop property:cast_member ?f . MINUS { resource:Mirrors property:cast_member ?f } . ?f rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q335376 Q234546 Q309690 Q34436 Q129591 Q25089 Q342962 Q234141
P106
Q12737077
USER
What are the professions of Kevin McNally, Romola Garai, Charles Dance, Scarlett Johansson, Hugh Jackman, Woody Allen, Anthony Head and Ian McShane ?
(Q335376,P106,c(Q12737077)) (Q234546,P106,c(Q12737077)) (Q309690,P106,c(Q12737077)) (Q34436,P106,c(Q12737077)) (Q129591,P106,c(Q12737077)) (Q25089,P106,c(Q12737077)) (Q342962,P106,c(Q12737077)) (Q234141,P106,c(Q12737077))
action union
action filter_type
action find
entity Q335376
relation P106
type Q12737077
action filter_type
action find
entity Q234546
relation P106
type Q12737077
action filter_type
action find
entity Q309690
relation P106
type Q12737077
action filter_type
action find
entity Q34436
relation P106
type Q12737077
action filter_type
action find
entity Q129591
relation P106
type Q12737077
action filter_type
action find
entity Q25089
relation P106
type Q12737077
action filter_type
action find
entity Q342962
relation P106
type Q12737077
action filter_type
action find
entity Q234141
relation P106
type Q12737077
['Q335376', 'P106', {'concept': 'Q12737077'}] ['Q234546', 'P106', {'concept': 'Q12737077'}] ['Q309690', 'P106', {'concept': 'Q12737077'}] ['Q34436', 'P106', {'concept': 'Q12737077'}] ['Q129591', 'P106', {'concept': 'Q12737077'}] ['Q25089', 'P106', {'concept': 'Q12737077'}] ['Q342962', 'P106', {'concept': 'Q12737077'}] ['Q234141', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { { resource:Q335376 property:P106 ?y . ?y rdf:type ontology:Q12737077 } UNION { resource:Q234546 property:P106 ?y . ?y rdf:type ontology:Q12737077 } }
Kevin McNally Romola Garai Charles Dance Scarlett Johansson Hugh Jackman Woody Allen Anthony Head Ian McShane
action union
action filter_type
action find
entity Kevin McNally
relation occupation
type occupation
action filter_type
action find
entity Romola Garai
relation occupation
type occupation
action filter_type
action find
entity Charles Dance
relation occupation
type occupation
action filter_type
action find
entity Scarlett Johansson
relation occupation
type occupation
action filter_type
action find
entity Hugh Jackman
relation occupation
type occupation
action filter_type
action find
entity Woody Allen
relation occupation
type occupation
action filter_type
action find
entity Anthony Head
relation occupation
type occupation
action filter_type
action find
entity Ian McShane
relation occupation
type occupation
['Kevin McNally', 'occupation', {'concept': 'occupation'}] ['Romola Garai', 'occupation', {'concept': 'occupation'}] ['Charles Dance', 'occupation', {'concept': 'occupation'}] ['Scarlett Johansson', 'occupation', {'concept': 'occupation'}] ['Hugh Jackman', 'occupation', {'concept': 'occupation'}] ['Woody Allen', 'occupation', {'concept': 'occupation'}] ['Anthony Head', 'occupation', {'concept': 'occupation'}] ['Ian McShane', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { { resource:Kevin_McNally property:occupation ?y . ?y rdf:type ontology:occupation } UNION { resource:Romola_Garai property:occupation ?y . ?y rdf:type ontology:occupation } }
[]
occupation
Q10798782 Q10798782 Q33999
SYSTEM
television actor for 1st, 2nd, actor for 3rd
Q33999 Q2259451 Q33999 Q2259451 Q10798782 Q33999 Q4610556 Q2259451 Q33999 Q177220 Q2259451 Q177220 Q639669 Q33999 Q118865 Q15981151 Q948329 Q33999 Q36180 Q639669 Q10798782 Q33999 Q33999
(Q335376,P106,c(Q12737077)) (Q234546,P106,c(Q12737077)) (Q309690,P106,c(Q12737077)) (Q34436,P106,c(Q12737077)) (Q129591,P106,c(Q12737077)) (Q25089,P106,c(Q12737077)) (Q342962,P106,c(Q12737077)) (Q234141,P106,c(Q12737077))
action union
action filter_type
action find
entity Q335376
relation P106
type Q12737077
action filter_type
action find
entity Q234546
relation P106
type Q12737077
action filter_type
action find
entity Q309690
relation P106
type Q12737077
action filter_type
action find
entity Q34436
relation P106
type Q12737077
action filter_type
action find
entity Q129591
relation P106
type Q12737077
action filter_type
action find
entity Q25089
relation P106
type Q12737077
action filter_type
action find
entity Q342962
relation P106
type Q12737077
action filter_type
action find
entity Q234141
relation P106
type Q12737077
[ANSWERS]
['Q335376', 'P106', {'concept': 'Q12737077'}] ['Q234546', 'P106', {'concept': 'Q12737077'}] ['Q309690', 'P106', {'concept': 'Q12737077'}] ['Q34436', 'P106', {'concept': 'Q12737077'}] ['Q129591', 'P106', {'concept': 'Q12737077'}] ['Q25089', 'P106', {'concept': 'Q12737077'}] ['Q342962', 'P106', {'concept': 'Q12737077'}] ['Q234141', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { { resource:Q335376 property:P106 ?y . ?y rdf:type ontology:Q12737077 } UNION { resource:Q234546 property:P106 ?y . ?y rdf:type ontology:Q12737077 } }
actor stage actor actor stage actor television actor actor model stage actor actor singer stage actor singer musician actor clarinetist jazz musician character actor actor writer musician television actor actor actor
The professions of Kevin McNally , Romola Garai , Charles Dance , Scarlett Johansson , Hugh Jackman , Woody Allen , Anthony Head and Ian McShane are a television actor, television actor and actor
television actor television actor actor
action union
action filter_type
action find
entity Kevin McNally
relation occupation
type occupation
action filter_type
action find
entity Romola Garai
relation occupation
type occupation
action filter_type
action find
entity Charles Dance
relation occupation
type occupation
action filter_type
action find
entity Scarlett Johansson
relation occupation
type occupation
action filter_type
action find
entity Hugh Jackman
relation occupation
type occupation
action filter_type
action find
entity Woody Allen
relation occupation
type occupation
action filter_type
action find
entity Anthony Head
relation occupation
type occupation
action filter_type
action find
entity Ian McShane
relation occupation
type occupation
['Kevin McNally', 'occupation', {'concept': 'occupation'}] ['Romola Garai', 'occupation', {'concept': 'occupation'}] ['Charles Dance', 'occupation', {'concept': 'occupation'}] ['Scarlett Johansson', 'occupation', {'concept': 'occupation'}] ['Hugh Jackman', 'occupation', {'concept': 'occupation'}] ['Woody Allen', 'occupation', {'concept': 'occupation'}] ['Anthony Head', 'occupation', {'concept': 'occupation'}] ['Ian McShane', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { { resource:Kevin_McNally property:occupation ?y . ?y rdf:type ontology:occupation } UNION { resource:Romola_Garai property:occupation ?y . ?y rdf:type ontology:occupation } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q335376
P26
Q502895
USER
Which person is married to that one ?
(Q335376,P26,c(Q502895))
action filter_type
action find
entity Q335376
relation P26
type Q502895
['Q335376', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q335376 property:P26 ?g . ?g rdf:type ontology:Q502895 }
Kevin McNally
action filter_type
action find
entity Kevin McNally
relation spouse
type common name
['Kevin McNally', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Kevin_McNally property:spouse ?g . ?g rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q335376
SYSTEM
Did you mean Kevin McNally ?
Q10798782 Q10798782 Q33999
(Q10798782,P26,c(Q502895)) (Q10798782,P26,c(Q502895)) (Q33999,P26,c(Q502895))
[ANSWER]
['Q10798782', 'P26', {'concept': 'Q502895'}] ['Q10798782', 'P26', {'concept': 'Q502895'}] ['Q33999', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q335376 property:P26 ?g . ?g rdf:type ontology:Q502895 }
television actor television actor actor
Did you mean Kevin McNally ?
Kevin McNally
['television actor', 'spouse', {'concept': 'common name'}] ['television actor', 'spouse', {'concept': 'common name'}] ['actor', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Kevin_McNally property:spouse ?g . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q335376,P26,c(Q502895))
['Q335376', 'P26', {'concept': 'Q502895'}]
['Kevin McNally', 'spouse', {'concept': 'common name'}]
[]
Q117995
SYSTEM
Phyllis Logan
Q117995
(Q335376,P26,c(Q502895))
action filter_type
action find
entity Q335376
relation P26
type Q502895
[ANSWER] is married to that one
['Q335376', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q335376 property:P26 ?g . ?g rdf:type ontology:Q502895 }
Phyllis Logan
Phyllis Logan is married to that one
Phyllis Logan
action filter_type
action find
entity Kevin McNally
relation spouse
type common name
['Kevin McNally', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Kevin_McNally property:spouse ?g . ?g rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q117995 Q2073497 Q2530270
P166
Q618779
USER
Was that person awarded with Peter-Weiss Prize and Screen Actors Guild Award for Outstanding Performance by an Ensemble in a Drama Series ?
(Q117995,P166,Q2073497) (Q117995,P166,Q2530270)
action is_in
entity Q117995
action intersection
action find_reverse
entity Q2073497
relation P166
action find_reverse
entity Q2530270
relation P166
['Q117995', 'P166', 'Q2073497'] ['Q117995', 'P166', 'Q2530270']
ASK WHERE { resource:Q117995 property:P166 resource:Q2073497 . resource:Q117995 property:P166 resource:Q2530270 }
Phyllis Logan Peter-Weiss Prize Screen Actors Guild Award for Outstanding Performance by an Ensemble in a Drama Series
action is_in
entity Phyllis Logan
action intersection
action find_reverse
entity Peter-Weiss Prize
relation award received
action find_reverse
entity Screen Actors Guild Award for Outstanding Performance by an Ensemble in a Drama Series
relation award received
['Phyllis Logan', 'award received', 'Peter-Weiss Prize'] ['Phyllis Logan', 'award received', 'Screen Actors Guild Award for Outstanding Performance by an Ensemble in a Drama Series']
ASK WHERE { resource:Phyllis_Logan property:award_received resource:Peter-Weiss_Prize . resource:Phyllis_Logan property:award_received resource:Screen_Actors_Guild_Award_for_Outstanding_Performance_by_an_Ensemble_in_a_Drama_Series }
[]
award
SYSTEM
NO and YES respectively
(Q117995,P166,Q2073497) (Q117995,P166,Q2530270)
action is_in
entity Q117995
action intersection
action find_reverse
entity Q2073497
relation P166
action find_reverse
entity Q2530270
relation P166
[ANSWER]
['Q117995', 'P166', 'Q2073497'] ['Q117995', 'P166', 'Q2530270']
ASK WHERE { resource:Q117995 property:P166 resource:Q2073497 . resource:Q117995 property:P166 resource:Q2530270 }
NO and YES respectively
action is_in
entity Phyllis Logan
action intersection
action find_reverse
entity Peter-Weiss Prize
relation award received
action find_reverse
entity Screen Actors Guild Award for Outstanding Performance by an Ensemble in a Drama Series
relation award received
['Phyllis Logan', 'award received', 'Peter-Weiss Prize'] ['Phyllis Logan', 'award received', 'Screen Actors Guild Award for Outstanding Performance by an Ensemble in a Drama Series']
ASK WHERE { resource:Phyllis_Logan property:award_received resource:Peter-Weiss_Prize . resource:Phyllis_Logan property:award_received resource:Screen_Actors_Guild_Award_for_Outstanding_Performance_by_an_Ensemble_in_a_Drama_Series }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q678090
P1303
Q34379 Q502895
USER
How many musical instruments are played by greater number of people than Twelve-string guitar ?
(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 Q678090
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?y ) AS ?u ) WHERE { ?y property:P1303 ?t . ?t rdf:type ontology:Q34379 . ?y rdf:type ontology:Q502895 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { ?o rdf:type ontology:Q34379 . resource:Q678090 property:P1303 ?o } } . FILTER ( ?u > ?z ) }
Twelve-string guitar
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 Twelve-string guitar
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?y ) AS ?u ) WHERE { ?y property:instrument ?t . ?t rdf:type ontology:musical_instrument . ?y rdf:type ontology:common_name } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { ?o rdf:type ontology:musical_instrument . resource:Twelve-string_guitar property:instrument ?o } } . FILTER ( ?u > ?z ) }
[]
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 Q678090
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?y ) AS ?u ) WHERE { ?y property:P1303 ?t . ?t rdf:type ontology:Q34379 . ?y rdf:type ontology:Q502895 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { ?o rdf:type ontology:Q34379 . resource:Q678090 property:P1303 ?o } } . FILTER ( ?u > ?z ) }
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 Twelve-string guitar
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?y ) AS ?u ) WHERE { ?y property:instrument ?t . ?t rdf:type ontology:musical_instrument . ?y rdf:type ontology:common_name } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { ?o rdf:type ontology:musical_instrument . resource:Twelve-string_guitar property:instrument ?o } } . FILTER ( ?u > ?z ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q497224
P1303
Q34379 Q502895
USER
And how about Kayamb?
(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 Q497224
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?u ) AS ?a ) WHERE { ?u property:P1303 ?d . ?d rdf:type ontology:Q34379 . ?u rdf:type ontology:Q502895 } GROUP BY ?d } . FILTER ( ?a > ?q ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { ?x rdf:type ontology:Q34379 . resource:Q497224 property:P1303 ?x } } }
Kayamb
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 Kayamb
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?u ) AS ?a ) WHERE { ?u property:instrument ?d . ?d rdf:type ontology:musical_instrument . ?u rdf:type ontology:common_name } GROUP BY ?d } . FILTER ( ?a > ?q ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { ?x rdf:type ontology:musical_instrument . resource:Kayamb property:instrument ?x } } }
[]
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 Q497224
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?u ) AS ?a ) WHERE { ?u property:P1303 ?d . ?d rdf:type ontology:Q34379 . ?u rdf:type ontology:Q502895 } GROUP BY ?d } . FILTER ( ?a > ?q ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { ?x rdf:type ontology:Q34379 . resource:Q497224 property:P1303 ?x } } }
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 Kayamb
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?u ) AS ?a ) WHERE { ?u property:instrument ?d . ?d rdf:type ontology:musical_instrument . ?u rdf:type ontology:common_name } GROUP BY ?d } . FILTER ( ?a > ?q ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { ?x rdf:type ontology:musical_instrument . resource:Kayamb property:instrument ?x } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q33999
P425
Q1914636
USER
Who is associated with the field of occupation actor ?
(Q33999,P425,c(Q1914636))
action filter_type
action find
entity Q33999
relation P425
type Q1914636
['Q33999', 'P425', {'concept': 'Q1914636'}]
SELECT DISTINCT ?o WHERE { resource:Q33999 property:P425 ?o . ?o rdf:type ontology:Q1914636 }
actor
action filter_type
action find
entity actor
relation field of this occupation
type activity
['actor', 'field of this occupation', {'concept': 'activity'}]
SELECT DISTINCT ?o WHERE { resource:actor property:field_of_this_occupation ?o . ?o rdf:type ontology:activity }
[]
activity
Q222749
SYSTEM
acting
Q222749
(Q33999,P425,c(Q1914636))
action filter_type
action find
entity Q33999
relation P425
type Q1914636
Is [ANSWER] is associated with the field of occupation actor
['Q33999', 'P425', {'concept': 'Q1914636'}]
SELECT DISTINCT ?o WHERE { resource:Q33999 property:P425 ?o . ?o rdf:type ontology:Q1914636 }
acting
Is acting is associated with the field of occupation actor
acting
action filter_type
action find
entity actor
relation field of this occupation
type activity
['actor', 'field of this occupation', {'concept': 'activity'}]
SELECT DISTINCT ?o WHERE { resource:actor property:field_of_this_occupation ?o . ?o rdf:type ontology:activity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q6937977 Q33999
P425 P1196
Q1914636
USER
Which activities are associated with the field of occupation actor or did Marcy Renee Conrad die in ?
OR((Q33999,P425,c(Q1914636)), (Q6937977,P1196,c(Q1914636)))
action filter_type
action union
action find
entity Q33999
relation P425
action find
entity Q6937977
relation P1196
type Q1914636
{'OR': [['Q33999', 'P425', {'concept': 'Q1914636'}], ['Q6937977', 'P1196', {'concept': 'Q1914636'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q33999 property:P425 ?u } UNION { resource:Q6937977 property:P1196 ?u } } . ?u rdf:type ontology:Q1914636 }
Marcy Renee Conrad actor
action filter_type
action union
action find
entity actor
relation field of this occupation
action find
entity Marcy Renee Conrad
relation manner of death
type activity
{'OR': [['actor', 'field of this occupation', {'concept': 'activity'}], ['Marcy Renee Conrad', 'manner of death', {'concept': 'activity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:actor property:field_of_this_occupation ?u } UNION { resource:Marcy_Renee_Conrad property:manner_of_death ?u } } . ?u rdf:type ontology:activity }
[]
activity
Q149086 Q222749
SYSTEM
homicide, acting
Q149086 Q222749
OR((Q33999,P425,c(Q1914636)), (Q6937977,P1196,c(Q1914636)))
action filter_type
action union
action find
entity Q33999
relation P425
action find
entity Q6937977
relation P1196
type Q1914636
[ANSWERS] are associated with the field of occupation actor or did Marcy Renee Conrad die in
{'OR': [['Q33999', 'P425', {'concept': 'Q1914636'}], ['Q6937977', 'P1196', {'concept': 'Q1914636'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q33999 property:P425 ?u } UNION { resource:Q6937977 property:P1196 ?u } } . ?u rdf:type ontology:Q1914636 }
homicide acting
Homicide and acting are associated with the field of occupation actor or did Marcy Renee Conrad die in
homicide acting
action filter_type
action union
action find
entity actor
relation field of this occupation
action find
entity Marcy Renee Conrad
relation manner of death
type activity
{'OR': [['actor', 'field of this occupation', {'concept': 'activity'}], ['Marcy Renee Conrad', 'manner of death', {'concept': 'activity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:actor property:field_of_this_occupation ?u } UNION { resource:Marcy_Renee_Conrad property:manner_of_death ?u } } . ?u rdf:type ontology:activity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6937977
P21
Q290
USER
Which sex does that person possess ?
(Q149086,P21,c(Q290)) (Q222749,P21,c(Q290))
action filter_type
action find
entity Q6937977
relation P21
type Q290
['Q149086', 'P21', {'concept': 'Q290'}] ['Q222749', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q6937977 property:P21 ?x . ?x rdf:type ontology:Q290 }
Marcy Renee Conrad
action filter_type
action find
entity Marcy Renee Conrad
relation gender
type sex
['homicide', 'gender', {'concept': 'sex'}] ['acting', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Marcy_Renee_Conrad property:gender ?x . ?x rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q149086,P21,c(Q290)) (Q222749,P21,c(Q290))
action filter_type
action find
entity Q6937977
relation P21
type Q290
That person possesses the [ANSWER]
['Q149086', 'P21', {'concept': 'Q290'}] ['Q222749', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q6937977 property:P21 ?x . ?x rdf:type ontology:Q290 }
female
That person possesses the female
female
action filter_type
action find
entity Marcy Renee Conrad
relation gender
type sex
['homicide', 'gender', {'concept': 'sex'}] ['acting', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Marcy_Renee_Conrad property:gender ?x . ?x rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q117995
P26
Q502895
USER
Who is the spouse of Phyllis Logan ?
(Q117995,P26,c(Q502895))
action filter_type
action find
entity Q117995
relation P26
type Q502895
['Q117995', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q117995 property:P26 ?m . ?m rdf:type ontology:Q502895 }
Phyllis Logan
action filter_type
action find
entity Phyllis Logan
relation spouse
type common name
['Phyllis Logan', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Phyllis_Logan property:spouse ?m . ?m rdf:type ontology:common_name }
[]
common name
Q335376
SYSTEM
Kevin McNally
Q335376
(Q117995,P26,c(Q502895))
action filter_type
action find
entity Q117995
relation P26
type Q502895
The spouse of Phyllis Logan is actor [ANSWER]
['Q117995', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q117995 property:P26 ?m . ?m rdf:type ontology:Q502895 }
Kevin McNally
The spouse of Phyllis Logan is actor Kevin McNally
Kevin McNally
action filter_type
action find
entity Phyllis Logan
relation spouse
type common name
['Phyllis Logan', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Phyllis_Logan property:spouse ?m . ?m rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q238453
Q502895
USER
And what about Princess Maria Pia of Bourbon-Two Sicilies?
(Q238453,P26,c(Q502895))
action filter_type
action find
entity Q238453
relation P26
type Q502895
['Q238453', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q502895 . resource:Q238453 property:P26 ?r }
Princess Maria Pia of Bourbon-Two Sicilies
action filter_type
action find
entity Princess Maria Pia of Bourbon-Two Sicilies
relation spouse
type common name
['Princess Maria Pia of Bourbon-Two Sicilies', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:common_name . resource:Princess_Maria_Pia_of_Bourbon-Two_Sicilies property:spouse ?r }
[]
common name
Q314577
SYSTEM
Robert I, Duke of Parma
Q314577
(Q238453,P26,c(Q502895))
action filter_type
action find
entity Q238453
relation P26
type Q502895
[ANSWER]
['Q238453', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q502895 . resource:Q238453 property:P26 ?r }
Robert I, Duke of Parma
Robert I, Duke of Parma
action filter_type
action find
entity Princess Maria Pia of Bourbon-Two Sicilies
relation spouse
type common name
['Princess Maria Pia of Bourbon-Two Sicilies', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:common_name . resource:Princess_Maria_Pia_of_Bourbon-Two_Sicilies property:spouse ?r }
[]