Simple Question (Direct)
Simple Question
Q555542
P20
Q56061
USER
Which administrative territory is the place of death of Michael Galasso ?
(Q555542,P20,c(Q56061))
action filter_type
action find
entity Q555542
relation P20
type Q56061
['Q555542', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q555542 property:P20 ?c . ?c rdf:type ontology:Q56061 }
Michael Galasso
action filter_type
action find
entity Michael Galasso
relation place of death
type administrative territorial entity
['Michael Galasso', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Michael_Galasso property:place_of_death ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q90
SYSTEM
Paris
Q90
(Q555542,P20,c(Q56061))
action filter_type
action find
entity Q555542
relation P20
type Q56061
[ANSWER] is the place of death of Michael Galasso
['Q555542', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q555542 property:P20 ?c . ?c rdf:type ontology:Q56061 }
Paris
Paris is the place of death of Michael Galasso
Paris
action filter_type
action find
entity Michael Galasso
relation place of death
type administrative territorial entity
['Michael Galasso', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Michael_Galasso property:place_of_death ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q555542
P264
Q334453
USER
Which division is the record label of that person ?
(Q90,P264,c(Q334453))
action filter_type
action find
entity Q555542
relation P264
type Q334453
['Q90', 'P264', {'concept': 'Q334453'}]
SELECT DISTINCT ?p WHERE { resource:Q555542 property:P264 ?p . ?p rdf:type ontology:Q334453 }
Michael Galasso
action filter_type
action find
entity Michael Galasso
relation record label
type division
['Paris', 'record label', {'concept': 'division'}]
SELECT DISTINCT ?p WHERE { resource:Michael_Galasso property:record_label ?p . ?p rdf:type ontology:division }
[]
division
Q311439
SYSTEM
ECM Records
Q311439
(Q90,P264,c(Q334453))
action filter_type
action find
entity Q555542
relation P264
type Q334453
The [ANSWER] is the record label of that person
['Q90', 'P264', {'concept': 'Q334453'}]
SELECT DISTINCT ?p WHERE { resource:Q555542 property:P264 ?p . ?p rdf:type ontology:Q334453 }
ECM Records
The ECM Records is the record label of that person
ECM Records
action filter_type
action find
entity Michael Galasso
relation record label
type division
['Paris', 'record label', {'concept': 'division'}]
SELECT DISTINCT ?p WHERE { resource:Michael_Galasso property:record_label ?p . ?p rdf:type ontology:division }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1441
Q15416 Q15961987 Q502895
USER
How many people are from the works of approximately 3 television programs or television genres ?
(c(Q502895),P1441,c(Q15416)|c(Q15961987))
action count
action approx
action union
action find_tuple_counts
relation P1441
type Q502895
type Q15416
action find_tuple_counts
relation P1441
type Q502895
type Q15961987
value 3
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q15416'}, {'concept': 'Q15961987'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) ?m WHERE { { ?m property:P1441 ?b . ?m rdf:type ontology:Q502895 . ?b rdf:type ontology:Q15416 } UNION { ?m property:P1441 ?b . ?m rdf:type ontology:Q502895 . ?b rdf:type ontology:Q15961987 } } GROUP BY ?m } . FILTER ( ?c = 3 ) }
action count
action approx
action union
action find_tuple_counts
relation present in work
type common name
type television program
action find_tuple_counts
relation present in work
type common name
type television genre
value 3
[{'concept': 'common name'}, 'present in work', [{'concept': 'television program'}, {'concept': 'television genre'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) ?m WHERE { { ?m property:present_in_work ?b . ?m rdf:type ontology:common_name . ?b rdf:type ontology:television_program } UNION { ?m property:present_in_work ?b . ?m rdf:type ontology:common_name . ?b rdf:type ontology:television_genre } } GROUP BY ?m } . FILTER ( ?c = 3 ) }
[]
television program television genre common name
SYSTEM
1
Q32295
(c(Q502895),P1441,c(Q15416)|c(Q15961987))
action count
action approx
action union
action find_tuple_counts
relation P1441
type Q502895
type Q15416
action find_tuple_counts
relation P1441
type Q502895
type Q15961987
value 3
[ANSWER]
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q15416'}, {'concept': 'Q15961987'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) ?m WHERE { { ?m property:P1441 ?b . ?m rdf:type ontology:Q502895 . ?b rdf:type ontology:Q15416 } UNION { ?m property:P1441 ?b . ?m rdf:type ontology:Q502895 . ?b rdf:type ontology:Q15961987 } } GROUP BY ?m } . FILTER ( ?c = 3 ) }
Michael J. Massimino
1
action count
action approx
action union
action find_tuple_counts
relation present in work
type common name
type television program
action find_tuple_counts
relation present in work
type common name
type television genre
value 3
[{'concept': 'common name'}, 'present in work', [{'concept': 'television program'}, {'concept': 'television genre'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) ?m WHERE { { ?m property:present_in_work ?b . ?m rdf:type ontology:common_name . ?b rdf:type ontology:television_program } UNION { ?m property:present_in_work ?b . ?m rdf:type ontology:common_name . ?b rdf:type ontology:television_genre } } GROUP BY ?m } . FILTER ( ?c = 3 ) }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q1054574 Q555542
P136 P86
Q838948
USER
Which works of art are composed by Michael Galasso and do not have genre named romance film ?
AND((c(Q838948),P86,Q555542), NOT((c(Q838948),P136,Q1054574)))
action filter_type
action difference
action find_reverse
entity Q555542
relation P86
action find_reverse
entity Q1054574
relation P136
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P86', 'Q555542'], {'NOT': [[{'concept': 'Q838948'}, 'P136', 'Q1054574']]}]}
SELECT DISTINCT ?k WHERE { MINUS { ?k property:P136 resource:Q1054574 } . ?k property:P86 resource:Q555542 . ?k rdf:type ontology:Q838948 }
romance film Michael Galasso
action filter_type
action difference
action find_reverse
entity Michael Galasso
relation composer
action find_reverse
entity romance film
relation genre
type work of art
{'AND': [[{'concept': 'work of art'}, 'composer', 'Michael Galasso'], {'NOT': [[{'concept': 'work of art'}, 'genre', 'romance film']]}]}
SELECT DISTINCT ?k WHERE { MINUS { ?k property:genre resource:romance_film } . ?k property:composer resource:Michael_Galasso . ?k rdf:type ontology:work_of_art }
[]
work of art
Q2399393 Q4633037 Q2485180 Q701252 Q1226378 Q2540799
SYSTEM
A Common Thread, 2B, Secret Ballot, Séraphine, Things That Hang from Trees, Waiting for the Clouds
Q2399393 Q4633037 Q2485180 Q701252 Q1226378 Q2540799
AND((c(Q838948),P86,Q555542), NOT((c(Q838948),P136,Q1054574)))
action filter_type
action difference
action find_reverse
entity Q555542
relation P86
action find_reverse
entity Q1054574
relation P136
type Q838948
[ANSWERS]
{'AND': [[{'concept': 'Q838948'}, 'P86', 'Q555542'], {'NOT': [[{'concept': 'Q838948'}, 'P136', 'Q1054574']]}]}
SELECT DISTINCT ?k WHERE { MINUS { ?k property:P136 resource:Q1054574 } . ?k property:P86 resource:Q555542 . ?k rdf:type ontology:Q838948 }
A Common Thread 2B Secret Ballot Séraphine Things That Hang from Trees Waiting for the Clouds
Séraphine, Things That hang from Trees and Waiting for the Clouds are composed by Michael Galasso and do not have genre named romance film
A Common Thread 2B Secret Ballot Séraphine Things That Hang from Trees Waiting for the Clouds
action filter_type
action difference
action find_reverse
entity Michael Galasso
relation composer
action find_reverse
entity romance film
relation genre
type work of art
{'AND': [[{'concept': 'work of art'}, 'composer', 'Michael Galasso'], {'NOT': [[{'concept': 'work of art'}, 'genre', 'romance film']]}]}
SELECT DISTINCT ?k WHERE { MINUS { ?k property:genre resource:romance_film } . ?k property:composer resource:Michael_Galasso . ?k rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q2399393 Q4633037 Q2485180 Q701252 Q1226378 Q2540799
P86
Q502895
USER
Who composed those works of art ?
(Q2399393,P86,c(Q502895)) (Q4633037,P86,c(Q502895)) (Q2485180,P86,c(Q502895)) (Q701252,P86,c(Q502895)) (Q1226378,P86,c(Q502895)) (Q2540799,P86,c(Q502895))
action filter_type
action find
entity prev_answer
relation P86
type Q502895
['Q2399393', 'P86', {'concept': 'Q502895'}] ['Q4633037', 'P86', {'concept': 'Q502895'}] ['Q2485180', 'P86', {'concept': 'Q502895'}] ['Q701252', 'P86', {'concept': 'Q502895'}] ['Q1226378', 'P86', {'concept': 'Q502895'}] ['Q2540799', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . ?e property:P86 ?m . VALUES ( ?e ) { ( resource:Q2399393 ) ( resource:Q4633037 ) ( resource:Q2485180 ) } }
A Common Thread 2B Secret Ballot Séraphine Things That Hang from Trees Waiting for the Clouds
action filter_type
action find
entity prev_answer
relation composer
type common name
['A Common Thread', 'composer', {'concept': 'common name'}] ['2B', 'composer', {'concept': 'common name'}] ['Secret Ballot', 'composer', {'concept': 'common name'}] ['Séraphine', 'composer', {'concept': 'common name'}] ['Things That Hang from Trees', 'composer', {'concept': 'common name'}] ['Waiting for the Clouds', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . ?e property:composer ?m . VALUES ( ?e ) { ( resource:A_Common_Thread ) ( resource:2B ) ( resource:Secret_Ballot ) } }
[]
common name
Q555542 Q555542 Q555542
SYSTEM
Michael Galasso
Q555542 Q555542 Q555542 Q555542 Q555542 Q555542
(Q2399393,P86,c(Q502895)) (Q4633037,P86,c(Q502895)) (Q2485180,P86,c(Q502895)) (Q701252,P86,c(Q502895)) (Q1226378,P86,c(Q502895)) (Q2540799,P86,c(Q502895))
action filter_type
action find
entity prev_answer
relation P86
type Q502895
[ANSWER], [ANSWER] and [ANSWER] composed those works of art
['Q2399393', 'P86', {'concept': 'Q502895'}] ['Q4633037', 'P86', {'concept': 'Q502895'}] ['Q2485180', 'P86', {'concept': 'Q502895'}] ['Q701252', 'P86', {'concept': 'Q502895'}] ['Q1226378', 'P86', {'concept': 'Q502895'}] ['Q2540799', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . ?e property:P86 ?m . VALUES ( ?e ) { ( resource:Q2399393 ) ( resource:Q4633037 ) ( resource:Q2485180 ) } }
Michael Galasso Michael Galasso Michael Galasso Michael Galasso Michael Galasso Michael Galasso
Michael Galasso, Michael Galasso and Michael Galasso composed those works of art
Michael Galasso Michael Galasso Michael Galasso
action filter_type
action find
entity prev_answer
relation composer
type common name
['A Common Thread', 'composer', {'concept': 'common name'}] ['2B', 'composer', {'concept': 'common name'}] ['Secret Ballot', 'composer', {'concept': 'common name'}] ['Séraphine', 'composer', {'concept': 'common name'}] ['Things That Hang from Trees', 'composer', {'concept': 'common name'}] ['Waiting for the Clouds', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . ?e property:composer ?m . VALUES ( ?e ) { ( resource:A_Common_Thread ) ( resource:2B ) ( resource:Secret_Ballot ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2399393
P495
Q15617994
USER
What is the origin of A Common Thread ?
(Q2399393,P495,c(Q15617994))
action filter_type
action find
entity Q2399393
relation P495
type Q15617994
['Q2399393', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q2399393 property:P495 ?w . ?w rdf:type ontology:Q15617994 }
A Common Thread
action filter_type
action find
entity A Common Thread
relation country of origin
type designation for an administrative territorial entity
['A Common Thread', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:A_Common_Thread property:country_of_origin ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q2399393,P495,c(Q15617994))
action filter_type
action find
entity Q2399393
relation P495
type Q15617994
The origin of A Common is in [ANSWER]
['Q2399393', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q2399393 property:P495 ?w . ?w rdf:type ontology:Q15617994 }
France
The origin of A Common is in France
France
action filter_type
action find
entity A Common Thread
relation country of origin
type designation for an administrative territorial entity
['A Common Thread', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:A_Common_Thread property:country_of_origin ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2399393
P364
Q34770
USER
Which language was used originally for the creation of A Common Thread ?
(Q2399393,P364,c(Q34770))
action filter_type
action find
entity Q2399393
relation P364
type Q34770
['Q2399393', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?g WHERE { resource:Q2399393 property:P364 ?g . ?g rdf:type ontology:Q34770 }
A Common Thread
action filter_type
action find
entity A Common Thread
relation original language of work
type language
['A Common Thread', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?g WHERE { resource:A_Common_Thread property:original_language_of_work ?g . ?g rdf:type ontology:language }
[]
language
Q8785
SYSTEM
Armenian
Q8785
(Q2399393,P364,c(Q34770))
action filter_type
action find
entity Q2399393
relation P364
type Q34770
[ANSWER] was used originally for the creation of A Common Thread
['Q2399393', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?g WHERE { resource:Q2399393 property:P364 ?g . ?g rdf:type ontology:Q34770 }
Armenian
Armenian was used originally for the creation of A Common Thread
Armenian
action filter_type
action find
entity A Common Thread
relation original language of work
type language
['A Common Thread', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?g WHERE { resource:A_Common_Thread property:original_language_of_work ?g . ?g rdf:type ontology:language }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7544196
Q34770
USER
And how about Smash?
(Q7544196,P364,c(Q34770))
action filter_type
action find
entity Q7544196
relation P364
type Q34770
['Q7544196', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?i WHERE { resource:Q7544196 property:P364 ?i . ?i rdf:type ontology:Q34770 }
Smash
action filter_type
action find
entity Smash
relation original language of work
type language
['Smash', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?i WHERE { resource:Smash property:original_language_of_work ?i . ?i rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q7544196,P364,c(Q34770))
action filter_type
action find
entity Q7544196
relation P364
type Q34770
[ANSWER]
['Q7544196', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?i WHERE { resource:Q7544196 property:P364 ?i . ?i rdf:type ontology:Q34770 }
English
English
action filter_type
action find
entity Smash
relation original language of work
type language
['Smash', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?i WHERE { resource:Smash property:original_language_of_work ?i . ?i rdf:type ontology:language }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q7544196
P144
Q15416
USER
How many television programs are an extension Smash ?
(c(Q15416),P144,Q7544196)
action count
action filter_type
action find_reverse
entity Q7544196
relation P144
type Q15416
[{'concept': 'Q15416'}, 'P144', 'Q7544196']
SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { ?e rdf:type ontology:Q15416 . ?e property:P144 resource:Q7544196 }
Smash
action count
action filter_type
action find_reverse
entity Smash
relation based on
type television program
[{'concept': 'television program'}, 'based on', 'Smash']
SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { ?e rdf:type ontology:television_program . ?e property:based_on resource:Smash }
[]
television program
SYSTEM
1
Q133683
(c(Q15416),P144,Q7544196)
action count
action filter_type
action find_reverse
entity Q7544196
relation P144
type Q15416
[ANSWER]
[{'concept': 'Q15416'}, 'P144', 'Q7544196']
SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { ?e rdf:type ontology:Q15416 . ?e property:P144 resource:Q7544196 }
Smash
1
action count
action filter_type
action find_reverse
entity Smash
relation based on
type television program
[{'concept': 'television program'}, 'based on', 'Smash']
SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { ?e rdf:type ontology:television_program . ?e property:based_on resource:Smash }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7544196
P50
Q502895
USER
Who authored that collectable ?
action filter_type
action find
entity Q7544196
relation P50
type Q502895
SELECT DISTINCT ?w WHERE { resource:Q7544196 property:P50 ?w . ?w rdf:type ontology:Q502895 }
Smash
action filter_type
action find
entity Smash
relation author
type common name
SELECT DISTINCT ?w WHERE { resource:Smash property:author ?w . ?w rdf:type ontology:common_name }
[]
common name
Q1377923
SYSTEM
Garson Kanin
Q1377923
action filter_type
action find
entity Q7544196
relation P50
type Q502895
[ANSWER] authored that collectable
SELECT DISTINCT ?w WHERE { resource:Q7544196 property:P50 ?w . ?w rdf:type ontology:Q502895 }
Garson Kanin
Garson Kanin authored that collectable
Garson Kanin
action filter_type
action find
entity Smash
relation author
type common name
SELECT DISTINCT ?w WHERE { resource:Smash property:author ?w . ?w rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7544196
P144
Q15416
USER
Which television program is adapted from that collectable ?
(c(Q15416),P144,Q1377923)
action filter_type
action find_reverse
entity Q7544196
relation P144
type Q15416
[{'concept': 'Q15416'}, 'P144', 'Q1377923']
SELECT DISTINCT ?i WHERE { ?i property:P144 resource:Q7544196 . ?i rdf:type ontology:Q15416 }
Smash
action filter_type
action find_reverse
entity Smash
relation based on
type television program
[{'concept': 'television program'}, 'based on', 'Garson Kanin']
SELECT DISTINCT ?i WHERE { ?i property:based_on resource:Smash . ?i rdf:type ontology:television_program }
[]
television program
Q133683
SYSTEM
Smash
Q133683
(c(Q15416),P144,Q1377923)
action filter_type
action find_reverse
entity Q7544196
relation P144
type Q15416
Games [ANSWER] is adapted from that collectable
[{'concept': 'Q15416'}, 'P144', 'Q1377923']
SELECT DISTINCT ?i WHERE { ?i property:P144 resource:Q7544196 . ?i rdf:type ontology:Q15416 }
Smash
Games Smash is adapted from that collectable
Smash
action filter_type
action find_reverse
entity Smash
relation based on
type television program
[{'concept': 'television program'}, 'based on', 'Garson Kanin']
SELECT DISTINCT ?i WHERE { ?i property:based_on resource:Smash . ?i rdf:type ontology:television_program }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P941
Q838948 Q838948 Q95074
USER
Which works of art inspired atleast 1 works of art and fictional characters ?
(c(Q838948)|c(Q95074),P941,c(Q838948))
action atleast
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q838948
action find_reverse_tuple_counts
relation P941
type Q838948
type Q95074
value 1
[[{'concept': 'Q838948'}, {'concept': 'Q95074'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?j ) WHERE { { ?z property:P941 ?q . ?q rdf:type ontology:Q838948 . ?z rdf:type ontology:Q838948 } UNION { ?z property:P941 ?q . ?q rdf:type ontology:Q838948 . ?z rdf:type ontology:Q95074 } } GROUP BY ?q } . FILTER ( ?j >= 1 ) }
action atleast
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type work of art
action find_reverse_tuple_counts
relation inspired by
type work of art
type fictional character
value 1
[[{'concept': 'work of art'}, {'concept': 'fictional character'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?j ) WHERE { { ?z property:inspired_by ?q . ?q rdf:type ontology:work_of_art . ?z rdf:type ontology:work_of_art } UNION { ?z property:inspired_by ?q . ?q rdf:type ontology:work_of_art . ?z rdf:type ontology:fictional_character } } GROUP BY ?q } . FILTER ( ?j >= 1 ) }
[]
work of art work of art fictional character
Q17738 Q107724 Q379873
SYSTEM
Star Wars Episode IV: A New Hope, Thunderball, Who Framed Roger Rabbit
Q1136305 Q107724 Q1852671 Q17738 Q1345920 Q181598 Q753298 Q1754737 Q186014 Q379873 Q734834 Q375786 Q83186 Q465478 Q493755 Q214619
(c(Q838948)|c(Q95074),P941,c(Q838948))
action atleast
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q838948
action find_reverse_tuple_counts
relation P941
type Q838948
type Q95074
value 1
Star Wars Episode IV: A New Hope, Thunderball and Who framed Roger Rabbit inspired atleast 1 works of art and fictional characters
[[{'concept': 'Q838948'}, {'concept': 'Q95074'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?j ) WHERE { { ?z property:P941 ?q . ?q rdf:type ontology:Q838948 . ?z rdf:type ontology:Q838948 } UNION { ?z property:P941 ?q . ?q rdf:type ontology:Q838948 . ?z rdf:type ontology:Q95074 } } GROUP BY ?q } . FILTER ( ?j >= 1 ) }
Doryphoros Thunderball Carnival of Souls Star Wars Episode IV: A New Hope Song of the South King Lear Uncle Vanya Lady Snowblood Zeitgeist: The Movie Who Framed Roger Rabbit Ghent Altarpiece Hippolytus Romeo and Juliet Star Trek II: The Wrath of Khan Coming to America The Little Mermaid
Star Wars Episode IV: A New Hope, Thunderball and Who framed Roger Rabbit inspired atleast 1 works of art and fictional characters
Star Wars Episode IV: A New Hope Thunderball Who Framed Roger Rabbit
action atleast
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type work of art
action find_reverse_tuple_counts
relation inspired by
type work of art
type fictional character
value 1
[[{'concept': 'work of art'}, {'concept': 'fictional character'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?j ) WHERE { { ?z property:inspired_by ?q . ?q rdf:type ontology:work_of_art . ?z rdf:type ontology:work_of_art } UNION { ?z property:inspired_by ?q . ?q rdf:type ontology:work_of_art . ?z rdf:type ontology:fictional_character } } GROUP BY ?q } . FILTER ( ?j >= 1 ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P1441
Q15619164
USER
How many abstract beings appear in that work of art ?
(c(Q15619164),P1441,Q17738)
[{'concept': 'Q15619164'}, 'P1441', 'Q17738']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P1441 resource:Q17738 . ?z rdf:type ontology:Q15619164 }
[{'concept': 'abstract being'}, 'present in work', 'Star Wars Episode IV: A New Hope']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:present_in_work resource:Star_Wars_Episode_IV:_A_New_Hope . ?z rdf:type ontology:abstract_being }
[]
abstract being
Quantitative|Count|Single entity type|Clarification
Q379873
SYSTEM
Did you mean Who Framed Roger Rabbit ?
(c(Q15619164),P1441,Q17738) (c(Q15619164),P1441,Q107724) (c(Q15619164),P1441,Q379873)
[ANSWER]
[{'concept': 'Q15619164'}, 'P1441', 'Q17738'] [{'concept': 'Q15619164'}, 'P1441', 'Q107724'] [{'concept': 'Q15619164'}, 'P1441', 'Q379873']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P1441 resource:Q17738 . ?z rdf:type ontology:Q15619164 }
Did you mean Who Framed Roger Rabbit ?
Who Framed Roger Rabbit
[{'concept': 'abstract being'}, 'present in work', 'Star Wars Episode IV: A New Hope'] [{'concept': 'abstract being'}, 'present in work', 'Thunderball'] [{'concept': 'abstract being'}, 'present in work', 'Who Framed Roger Rabbit']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:present_in_work resource:Star_Wars_Episode_IV:_A_New_Hope . ?z rdf:type ontology:abstract_being }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Star Wars Episode IV: A New Hope. Could you tell me the answer for that?
(c(Q15619164),P1441,Q17738)
Q17738
[{'concept': 'Q15619164'}, 'P1441', 'Q17738']
[{'concept': 'abstract being'}, 'present in work', 'Star Wars Episode IV: A New Hope']
[]
SYSTEM
4
Q51740 Q3755427 Q22245066 Q22245121
(c(Q15619164),P1441,Q17738)
[ANSWER]
[{'concept': 'Q15619164'}, 'P1441', 'Q17738']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P1441 resource:Q17738 . ?z rdf:type ontology:Q15619164 }
Obi-Wan Kenobi General Dodonna Brea Tonnika Senni Tonnika
4
[{'concept': 'abstract being'}, 'present in work', 'Star Wars Episode IV: A New Hope']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:present_in_work resource:Star_Wars_Episode_IV:_A_New_Hope . ?z rdf:type ontology:abstract_being }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q17738
P800
Q502895
USER
Which person is accredited with being the author of the notable work that one ?
action filter_type
action find_reverse
entity Q17738
relation P800
type Q502895
SELECT DISTINCT ?y WHERE { ?y property:P800 resource:Q17738 . ?y rdf:type ontology:Q502895 }
Star Wars Episode IV: A New Hope
action filter_type
action find_reverse
entity Star Wars Episode IV: A New Hope
relation notable work
type common name
SELECT DISTINCT ?y WHERE { ?y property:notable_work resource:Star_Wars_Episode_IV:_A_New_Hope . ?y rdf:type ontology:common_name }
[]
common name
Q38222
SYSTEM
George Lucas
Q38222
action filter_type
action find_reverse
entity Q17738
relation P800
type Q502895
[ANSWER] is accredited with being the author of the notable work that one
SELECT DISTINCT ?y WHERE { ?y property:P800 resource:Q17738 . ?y rdf:type ontology:Q502895 }
George Lucas
George Lucas is accredited with being the author of the notable work that one
George Lucas
action filter_type
action find_reverse
entity Star Wars Episode IV: A New Hope
relation notable work
type common name
SELECT DISTINCT ?y WHERE { ?y property:notable_work resource:Star_Wars_Episode_IV:_A_New_Hope . ?y rdf:type ontology:common_name }
[]