Simple Question (Direct)
Simple Question
Q723679
P161
Q502895
USER
Which people were casted in Star Trek: Generations ?
(Q723679,P161,c(Q502895))
action filter_type
action find
entity Q723679
relation P161
type Q502895
['Q723679', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q723679 property:P161 ?f . ?f rdf:type ontology:Q502895 }
Star Trek: Generations
action filter_type
action find
entity Star Trek: Generations
relation cast member
type common name
['Star Trek: Generations', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Star_Trek:_Generations property:cast_member ?f . ?f rdf:type ontology:common_name }
[]
common name
Q49001 Q312570 Q16297
SYSTEM
Whoopi Goldberg, LeVar Burton, William Shatner
Q312570 Q232945 Q316955 Q16297 Q16296 Q253764 Q49001 Q117392 Q498263 Q346595 Q376176 Q311453 Q318412
(Q723679,P161,c(Q502895))
action filter_type
action find
entity Q723679
relation P161
type Q502895
[ANSWERS] were casted in Star Trek: Generations
['Q723679', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q723679 property:P161 ?f . ?f rdf:type ontology:Q502895 }
LeVar Burton Marina Sirtis Michael Dorn William Shatner Patrick Stewart Gates McFadden Whoopi Goldberg Malcolm McDowell Alan Ruck Jonathan Frakes Walter Koenig Brent Spiner James Doohan
Whoopi Goldberg, LeVar Burton and William Shatner were casted in Star Trek: Generations
Whoopi Goldberg LeVar Burton William Shatner
action filter_type
action find
entity Star Trek: Generations
relation cast member
type common name
['Star Trek: Generations', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Star_Trek:_Generations property:cast_member ?f . ?f rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q49001 Q312570 Q16297
P21
Q290
USER
What are the sex of those people ?
(Q49001,P21,c(Q290)) (Q312570,P21,c(Q290)) (Q16297,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
['Q49001', 'P21', {'concept': 'Q290'}] ['Q312570', 'P21', {'concept': 'Q290'}] ['Q16297', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q290 . ?m property:P21 ?s . VALUES ( ?m ) { ( resource:Q312570 ) ( resource:Q232945 ) ( resource:Q316955 ) } }
Whoopi Goldberg LeVar Burton William Shatner
action filter_type
action find
entity prev_answer
relation gender
type sex
['Whoopi Goldberg', 'gender', {'concept': 'sex'}] ['LeVar Burton', 'gender', {'concept': 'sex'}] ['William Shatner', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:sex . ?m property:gender ?s . VALUES ( ?m ) { ( resource:LeVar_Burton ) ( resource:Marina_Sirtis ) ( resource:Michael_Dorn ) } }
[]
sex
Q6581072 Q6581097 Q6581097
SYSTEM
male for 2nd, 3rd, female for 1st
Q6581072 Q6581097 Q6581097
(Q49001,P21,c(Q290)) (Q312570,P21,c(Q290)) (Q16297,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
[ANSWERS]
['Q49001', 'P21', {'concept': 'Q290'}] ['Q312570', 'P21', {'concept': 'Q290'}] ['Q16297', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q290 . ?m property:P21 ?s . VALUES ( ?m ) { ( resource:Q312570 ) ( resource:Q232945 ) ( resource:Q316955 ) } }
female male male
The sex of those people are female, male and male
female male male
action filter_type
action find
entity prev_answer
relation gender
type sex
['Whoopi Goldberg', 'gender', {'concept': 'sex'}] ['LeVar Burton', 'gender', {'concept': 'sex'}] ['William Shatner', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:sex . ?m property:gender ?s . VALUES ( ?m ) { ( resource:LeVar_Burton ) ( resource:Marina_Sirtis ) ( resource:Michael_Dorn ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q723679
P57
Q502895
USER
Who was Star Trek: Generations directed by ?
(Q723679,P57,c(Q502895))
action filter_type
action find
entity Q723679
relation P57
type Q502895
['Q723679', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q723679 property:P57 ?i . ?i rdf:type ontology:Q502895 }
Star Trek: Generations
action filter_type
action find
entity Star Trek: Generations
relation director
type common name
['Star Trek: Generations', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Star_Trek:_Generations property:director ?i . ?i rdf:type ontology:common_name }
[]
common name
Q3496511
SYSTEM
David Carson
Q3496511
(Q723679,P57,c(Q502895))
action filter_type
action find
entity Q723679
relation P57
type Q502895
By Star Trek : Generations directed was by [ANSWER]
['Q723679', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q723679 property:P57 ?i . ?i rdf:type ontology:Q502895 }
David Carson
By Star Trek : Generations directed was by David Carson
David Carson
action filter_type
action find
entity Star Trek: Generations
relation director
type common name
['Star Trek: Generations', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Star_Trek:_Generations property:director ?i . ?i rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q723679
P136
Q1792379
USER
What can be considered as category for Star Trek: Generations ?
(Q723679,P136,c(Q1792379))
action filter_type
action find
entity Q723679
relation P136
type Q1792379
['Q723679', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q1792379 . resource:Q723679 property:P136 ?j }
Star Trek: Generations
action filter_type
action find
entity Star Trek: Generations
relation genre
type art genre
['Star Trek: Generations', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:art_genre . resource:Star_Trek:_Generations property:genre ?j }
[]
art genre
Q471839 Q319221 Q188473
SYSTEM
science fiction film, adventure film, action film
Q471839 Q319221 Q188473
(Q723679,P136,c(Q1792379))
action filter_type
action find
entity Q723679
relation P136
type Q1792379
[ANSWERS] can be considered as category for Star Trek: Generations
['Q723679', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q1792379 . resource:Q723679 property:P136 ?j }
science fiction film adventure film action film
Science fiction film, adventure film and action film can be considered as category for Star Trek: Generations
science fiction film adventure film action film
action filter_type
action find
entity Star Trek: Generations
relation genre
type art genre
['Star Trek: Generations', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:art_genre . resource:Star_Trek:_Generations property:genre ?j }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q723679
P495
Q15617994
USER
Which administrative territory is the origin of Star Trek: Generations ?
(Q723679,P495,c(Q15617994))
action filter_type
action find
entity Q723679
relation P495
type Q15617994
['Q723679', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q723679 property:P495 ?t }
Star Trek: Generations
action filter_type
action find
entity Star Trek: Generations
relation country of origin
type designation for an administrative territorial entity
['Star Trek: Generations', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Star_Trek:_Generations property:country_of_origin ?t }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q723679,P495,c(Q15617994))
action filter_type
action find
entity Q723679
relation P495
type Q15617994
[ANSWER] is the origin of Star Trek: Generations
['Q723679', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q723679 property:P495 ?t }
United States of America
United States of America is the origin of Star Trek: Generations
United States of America
action filter_type
action find
entity Star Trek: Generations
relation country of origin
type designation for an administrative territorial entity
['Star Trek: Generations', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Star_Trek:_Generations property:country_of_origin ?t }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q30 Q1903364 Q21152617
P6
Q502895
USER
Does that administrative territory have Martin Baltscheit and Frans Drabbe as its administrative leader ?
(Q30,P6,Q1903364) (Q30,P6,Q21152617)
action is_in
entity Q30
action intersection
action find_reverse
entity Q1903364
relation P6
action find_reverse
entity Q21152617
relation P6
['Q30', 'P6', 'Q1903364'] ['Q30', 'P6', 'Q21152617']
ASK WHERE { resource:Q30 property:P6 resource:Q21152617 . resource:Q30 property:P6 resource:Q1903364 }
United States of America Martin Baltscheit Frans Drabbe
action is_in
entity United States of America
action intersection
action find_reverse
entity Martin Baltscheit
relation head of government
action find_reverse
entity Frans Drabbe
relation head of government
['United States of America', 'head of government', 'Martin Baltscheit'] ['United States of America', 'head of government', 'Frans Drabbe']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:Frans_Drabbe . resource:United_States_of_America property:head_of_government resource:Martin_Baltscheit }
[]
common name
SYSTEM
NO
(Q30,P6,Q1903364) (Q30,P6,Q21152617)
action is_in
entity Q30
action intersection
action find_reverse
entity Q1903364
relation P6
action find_reverse
entity Q21152617
relation P6
[ANSWER]
['Q30', 'P6', 'Q1903364'] ['Q30', 'P6', 'Q21152617']
ASK WHERE { resource:Q30 property:P6 resource:Q21152617 . resource:Q30 property:P6 resource:Q1903364 }
No
action is_in
entity United States of America
action intersection
action find_reverse
entity Martin Baltscheit
relation head of government
action find_reverse
entity Frans Drabbe
relation head of government
['United States of America', 'head of government', 'Martin Baltscheit'] ['United States of America', 'head of government', 'Frans Drabbe']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:Frans_Drabbe . resource:United_States_of_America property:head_of_government resource:Martin_Baltscheit }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1048856 Q312570
P1411
Q618779
USER
Which awards were LeVar Burton or All in the Family nominated for ?
OR((Q312570,P1411,c(Q618779)), (Q1048856,P1411,c(Q618779)))
action filter_type
action union
action find
entity Q312570
relation P1411
action find
entity Q1048856
relation P1411
type Q618779
{'OR': [['Q312570', 'P1411', {'concept': 'Q618779'}], ['Q1048856', 'P1411', {'concept': 'Q618779'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q312570 property:P1411 ?t } UNION { resource:Q1048856 property:P1411 ?t } } . ?t rdf:type ontology:Q618779 }
All in the Family LeVar Burton
action filter_type
action union
action find
entity LeVar Burton
relation nominated for
action find
entity All in the Family
relation nominated for
type award
{'OR': [['LeVar Burton', 'nominated for', {'concept': 'award'}], ['All in the Family', 'nominated for', {'concept': 'award'}]]}
SELECT DISTINCT ?t WHERE { { { resource:LeVar_Burton property:nominated_for ?t } UNION { resource:All_in_the_Family property:nominated_for ?t } } . ?t rdf:type ontology:award }
[]
award
Q2604800 Q989450 Q430035 Q1277961 Q1287335 Q1285970 Q989442 Q2110156 Q3045762 Q1653137
SYSTEM
Some of them are Primetime Emmy Award for Outstanding Guest Actor in a Drama Series, Primetime Emmy Award for Outstanding Supporting Actress in a Comedy Series, Astrid Lindgren Memorial Award, Primetime Emmy Award for Outstanding Directing for a Comedy Series, Primetime Emmy Award for Outstanding Lead Actress in a Comedy Series, Primetime Emmy Award for Outstanding Supporting Actor in a Comedy Series, Primetime Emmy Award for Outstanding Lead Actor in a Comedy Series, Primetime Emmy Award for Outstanding Comedy Series, Primetime Emmy Award for Outstanding Writing for a Comedy Series, NAACP Image Award for Outstanding Actor in a Motion Picture
Q430035 Q1287335 Q2604800 Q1653137 Q6952068 Q1277961 Q5593890 Q2110156 Q989442 Q989450 Q1285970 Q3045762 Q5280670
OR((Q312570,P1411,c(Q618779)), (Q1048856,P1411,c(Q618779)))
action filter_type
action union
action find
entity Q312570
relation P1411
action find
entity Q1048856
relation P1411
type Q618779
LeVar Burton or All in the Family were nominated for [ANSWERS]
{'OR': [['Q312570', 'P1411', {'concept': 'Q618779'}], ['Q1048856', 'P1411', {'concept': 'Q618779'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q312570 property:P1411 ?t } UNION { resource:Q1048856 property:P1411 ?t } } . ?t rdf:type ontology:Q618779 }
Astrid Lindgren Memorial Award Primetime Emmy Award for Outstanding Lead Actress in a Comedy Series Primetime Emmy Award for Outstanding Guest Actor in a Drama Series NAACP Image Award for Outstanding Actor in a Motion Picture NAACP Image Award for Outstanding Performance in a Youth/Children's Series or Special Primetime Emmy Award for Outstanding Directing for a Comedy Series Grammy Award for Best Spoken Word Album Primetime Emmy Award for Outstanding Comedy Series Primetime Emmy Award for Outstanding Lead Actor in a Comedy Series Primetime Emmy Award for Outstanding Supporting Actress in a Comedy Series Primetime Emmy Award for Outstanding Supporting Actor in a Comedy Series Primetime Emmy Award for Outstanding Writing for a Comedy Series Directors Guild of America Award for Outstanding Directing – Comedy Series
LeVar Burton or All in the Family were nominated for Primetime Emmy Award for Outstanding Guest Actor in a Drama Series, Primetime Emmy Award for Outstanding Supporting Actress in a Comedy Series, Astrid Lindgren Memorial Award, Primetime Emmy Award for Outstanding Directing for a Comedy Series, Primetime Emmy Award for Outstanding Lead Actress in a Comedy Series, Primetime Emmy Award for Outstanding Supporting Actor in a Comedy Series, Primetime Emmy Award for Outstanding Lead Actor in a Comedy Series, Primetime Emmy Award for Outstanding Comedy Series, Primetime Emmy Award for Outstanding Writing for a Comedy Series and NAACP Image Award for Outstanding Actor in a Motion Picture
Primetime Emmy Award for Outstanding Guest Actor in a Drama Series Primetime Emmy Award for Outstanding Supporting Actress in a Comedy Series Astrid Lindgren Memorial Award Primetime Emmy Award for Outstanding Directing for a Comedy Series Primetime Emmy Award for Outstanding Lead Actress in a Comedy Series Primetime Emmy Award for Outstanding Supporting Actor in a Comedy Series Primetime Emmy Award for Outstanding Lead Actor in a Comedy Series Primetime Emmy Award for Outstanding Comedy Series Primetime Emmy Award for Outstanding Writing for a Comedy Series NAACP Image Award for Outstanding Actor in a Motion Picture
action filter_type
action union
action find
entity LeVar Burton
relation nominated for
action find
entity All in the Family
relation nominated for
type award
{'OR': [['LeVar Burton', 'nominated for', {'concept': 'award'}], ['All in the Family', 'nominated for', {'concept': 'award'}]]}
SELECT DISTINCT ?t WHERE { { { resource:LeVar_Burton property:nominated_for ?t } UNION { resource:All_in_the_Family property:nominated_for ?t } } . ?t rdf:type ontology:award }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q1047113 Q198 Q618779
USER
How many awards are parts of exactly 1 special fields or wars ?
(c(Q618779),P361,c(Q1047113)|c(Q198))
action count
action equal
action union
action find_tuple_counts
relation P361
type Q618779
type Q1047113
action find_tuple_counts
relation P361
type Q618779
type Q198
value 1
[{'concept': 'Q618779'}, 'P361', [{'concept': 'Q1047113'}, {'concept': 'Q198'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?w ) WHERE { { ?g property:P361 ?j . ?g rdf:type ontology:Q618779 . ?j rdf:type ontology:Q1047113 } UNION { ?g property:P361 ?j . ?g rdf:type ontology:Q618779 . ?j rdf:type ontology:Q198 } } GROUP BY ?g } . FILTER ( ?w = 1 ) }
action count
action equal
action union
action find_tuple_counts
relation part of
type award
type special field
action find_tuple_counts
relation part of
type award
type war
value 1
[{'concept': 'award'}, 'part of', [{'concept': 'special field'}, {'concept': 'war'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?w ) WHERE { { ?g property:part_of ?j . ?g rdf:type ontology:award . ?j rdf:type ontology:special_field } UNION { ?g property:part_of ?j . ?g rdf:type ontology:award . ?j rdf:type ontology:war } } GROUP BY ?g } . FILTER ( ?w = 1 ) }
[]
special field war award
SYSTEM
3
Q2547676 Q372370 Q1549393
(c(Q618779),P361,c(Q1047113)|c(Q198))
action count
action equal
action union
action find_tuple_counts
relation P361
type Q618779
type Q1047113
action find_tuple_counts
relation P361
type Q618779
type Q198
value 1
[ANSWER]
[{'concept': 'Q618779'}, 'P361', [{'concept': 'Q1047113'}, {'concept': 'Q198'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?w ) WHERE { { ?g property:P361 ?j . ?g rdf:type ontology:Q618779 . ?j rdf:type ontology:Q1047113 } UNION { ?g property:P361 ?j . ?g rdf:type ontology:Q618779 . ?j rdf:type ontology:Q198 } } GROUP BY ?g } . FILTER ( ?w = 1 ) }
Croix de guerre 1939–1945 Knight's Cross Grand Officer
3
action count
action equal
action union
action find_tuple_counts
relation part of
type award
type special field
action find_tuple_counts
relation part of
type award
type war
value 1
[{'concept': 'award'}, 'part of', [{'concept': 'special field'}, {'concept': 'war'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?w ) WHERE { { ?g property:part_of ?j . ?g rdf:type ontology:award . ?j rdf:type ontology:special_field } UNION { ?g property:part_of ?j . ?g rdf:type ontology:award . ?j rdf:type ontology:war } } GROUP BY ?g } . FILTER ( ?w = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q198 Q223393 Q618779
USER
How many awards are a component of approximately 1 wars or literary genres ?
(c(Q618779),P361,c(Q198)|c(Q223393))
action count
action approx
action union
action find_tuple_counts
relation P361
type Q618779
type Q198
action find_tuple_counts
relation P361
type Q618779
type Q223393
value 1
[{'concept': 'Q618779'}, 'P361', [{'concept': 'Q198'}, {'concept': 'Q223393'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?u ) AS ?x ) WHERE { { ?y rdf:type ontology:Q618779 . ?u rdf:type ontology:Q198 . ?y property:P361 ?u } UNION { ?y rdf:type ontology:Q618779 . ?u rdf:type ontology:Q223393 . ?y property:P361 ?u } } GROUP BY ?y } . FILTER ( ?x = 1 ) }
action count
action approx
action union
action find_tuple_counts
relation part of
type award
type war
action find_tuple_counts
relation part of
type award
type literary genre
value 1
[{'concept': 'award'}, 'part of', [{'concept': 'war'}, {'concept': 'literary genre'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?u ) AS ?x ) WHERE { { ?y rdf:type ontology:award . ?u rdf:type ontology:war . ?y property:part_of ?u } UNION { ?y rdf:type ontology:award . ?u rdf:type ontology:literary_genre . ?y property:part_of ?u } } GROUP BY ?y } . FILTER ( ?x = 1 ) }
[]
war literary genre award
SYSTEM
2
Q20824563 Q2547676
(c(Q618779),P361,c(Q198)|c(Q223393))
action count
action approx
action union
action find_tuple_counts
relation P361
type Q618779
type Q198
action find_tuple_counts
relation P361
type Q618779
type Q223393
value 1
[ANSWER]
[{'concept': 'Q618779'}, 'P361', [{'concept': 'Q198'}, {'concept': 'Q223393'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?u ) AS ?x ) WHERE { { ?y rdf:type ontology:Q618779 . ?u rdf:type ontology:Q198 . ?y property:P361 ?u } UNION { ?y rdf:type ontology:Q618779 . ?u rdf:type ontology:Q223393 . ?y property:P361 ?u } } GROUP BY ?y } . FILTER ( ?x = 1 ) }
Michelin star Croix de guerre 1939–1945
2
action count
action approx
action union
action find_tuple_counts
relation part of
type award
type war
action find_tuple_counts
relation part of
type award
type literary genre
value 1
[{'concept': 'award'}, 'part of', [{'concept': 'war'}, {'concept': 'literary genre'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?u ) AS ?x ) WHERE { { ?y rdf:type ontology:award . ?u rdf:type ontology:war . ?y property:part_of ?u } UNION { ?y rdf:type ontology:award . ?u rdf:type ontology:literary_genre . ?y property:part_of ?u } } GROUP BY ?y } . FILTER ( ?x = 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3496511
P162
Q15416
USER
Which television program has been developed by David Carson ?
(c(Q15416),P162,Q3496511)
action filter_type
action find_reverse
entity Q3496511
relation P162
type Q15416
[{'concept': 'Q15416'}, 'P162', 'Q3496511']
SELECT DISTINCT ?l WHERE { ?l property:P162 resource:Q3496511 . ?l rdf:type ontology:Q15416 }
David Carson
action filter_type
action find_reverse
entity David Carson
relation producer
type television program
[{'concept': 'television program'}, 'producer', 'David Carson']
SELECT DISTINCT ?l WHERE { ?l property:producer resource:David_Carson . ?l rdf:type ontology:television_program }
[]
television program
Q1045023
SYSTEM
Carrie
Q1045023
(c(Q15416),P162,Q3496511)
action filter_type
action find_reverse
entity Q3496511
relation P162
type Q15416
Has [ANSWER] has been developed by David Carson
[{'concept': 'Q15416'}, 'P162', 'Q3496511']
SELECT DISTINCT ?l WHERE { ?l property:P162 resource:Q3496511 . ?l rdf:type ontology:Q15416 }
Carrie
Has Carrie has been developed by David Carson
Carrie
action filter_type
action find_reverse
entity David Carson
relation producer
type television program
[{'concept': 'television program'}, 'producer', 'David Carson']
SELECT DISTINCT ?l WHERE { ?l property:producer resource:David_Carson . ?l rdf:type ontology:television_program }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3496511
P26
Q502895
USER
Who is the spouse of that one ?
(Q1045023,P26,c(Q502895))
action filter_type
action find
entity Q3496511
relation P26
type Q502895
['Q1045023', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q3496511 property:P26 ?q . ?q rdf:type ontology:Q502895 }
David Carson
action filter_type
action find
entity David Carson
relation spouse
type common name
['Carrie', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:David_Carson property:spouse ?q . ?q rdf:type ontology:common_name }
[]
common name
Q568813
SYSTEM
Kim Braden
Q568813
(Q1045023,P26,c(Q502895))
action filter_type
action find
entity Q3496511
relation P26
type Q502895
The spouse of that one is Miss [ANSWER]
['Q1045023', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q3496511 property:P26 ?q . ?q rdf:type ontology:Q502895 }
Kim Braden
The spouse of that one is Miss Kim Braden
Kim Braden
action filter_type
action find
entity David Carson
relation spouse
type common name
['Carrie', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:David_Carson property:spouse ?q . ?q rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q568813
P40
Q502895
USER
Whose child are that one ?
(c(Q502895),P40,Q568813)
action filter_type
action find_reverse
entity Q568813
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q568813']
SELECT DISTINCT ?b WHERE { ?b property:P40 resource:Q568813 . ?b rdf:type ontology:Q502895 }
Kim Braden
action filter_type
action find_reverse
entity Kim Braden
relation child
type common name
[{'concept': 'common name'}, 'child', 'Kim Braden']
SELECT DISTINCT ?b WHERE { ?b property:child resource:Kim_Braden . ?b rdf:type ontology:common_name }
[]
common name
Q4892946 Q508605
SYSTEM
Bernard Braden, Barbara Kelly
Q4892946 Q508605
(c(Q502895),P40,Q568813)
action filter_type
action find_reverse
entity Q568813
relation P40
type Q502895
[ANSWERS] are that one
[{'concept': 'Q502895'}, 'P40', 'Q568813']
SELECT DISTINCT ?b WHERE { ?b property:P40 resource:Q568813 . ?b rdf:type ontology:Q502895 }
Bernard Braden Barbara Kelly
Bernard Braden and Barbara Kelly are that one
Bernard Braden Barbara Kelly
action filter_type
action find_reverse
entity Kim Braden
relation child
type common name
[{'concept': 'common name'}, 'child', 'Kim Braden']
SELECT DISTINCT ?b WHERE { ?b property:child resource:Kim_Braden . ?b rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1441
Q838948 Q6619679 Q15619164
USER
Which works of art are min number of fictional humanoids and abstract beings present in ?
(c(Q6619679)|c(Q15619164),P1441,c(Q838948))
action argmin
action union
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q6619679
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q15619164
[[{'concept': 'Q6619679'}, {'concept': 'Q15619164'}], 'P1441', {'concept': 'Q838948'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?n ) WHERE { ?q rdf:type ?l . VALUES ( ?l ) { ( ontology:Q6619679 ) ( ontology:Q15619164 ) } } GROUP BY ?g } . FILTER ( ?n = ?i ) . { SELECT DISTINCT ( MIN ( ?j ) AS ?i ) { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?j ) WHERE { { ?u property:P1441 ?s . ?s rdf:type ontology:Q838948 . ?u rdf:type ontology:Q6619679 } UNION { ?u property:P1441 ?s . ?s rdf:type ontology:Q838948 . ?u rdf:type ontology:Q15619164 } } GROUP BY ?s } } }
action argmin
action union
action find_reverse_tuple_counts
relation present in work
type work of art
type fictional humanoid
action find_reverse_tuple_counts
relation present in work
type work of art
type abstract being
[[{'concept': 'fictional humanoid'}, {'concept': 'abstract being'}], 'present in work', {'concept': 'work of art'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?n ) WHERE { ?q rdf:type ?l . VALUES ( ?l ) { ( ontology:fictional_humanoid ) ( ontology:abstract_being ) } } GROUP BY ?g } . FILTER ( ?n = ?i ) . { SELECT DISTINCT ( MIN ( ?j ) AS ?i ) { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?j ) WHERE { { ?u property:present_in_work ?s . ?s rdf:type ontology:work_of_art . ?u rdf:type ontology:fictional_humanoid } UNION { ?u property:present_in_work ?s . ?s rdf:type ontology:work_of_art . ?u rdf:type ontology:abstract_being } } GROUP BY ?s } } }
[]
work of art fictional humanoid abstract being
Q102244 Q2875 Q18067135
SYSTEM
Harry Potter and the Chamber of Secrets, Gone with the Wind, Bridge of Spies
Q4008453 Q6072886 Q2875 Q28234 Q1140272 Q221947 Q7750966 Q3273477 Q1388653 Q215750 Q171453 Q719915 Q537407 Q4655870 Q388319 Q15304052 Q3211484 Q2527293 Q384508 Q15043347 Q2891244 Q4253250 Q146673 Q83186 Q181795 Q171669 Q431660 Q8561227 Q1420651 Q467053 Q1364029 Q919649 Q179215 Q16997069 Q174284 Q1962005 Q222939 Q221236 Q245227 Q4189330 Q182373 Q24278982 Q466781 Q7764815 Q14942871 Q15140437 Q219421 Q185658 Q1962032 Q41567 Q24871 Q124612 Q3031303 Q543403 Q176568 Q1702819 Q746733 Q156539 Q641362 Q123742 Q18067135 Q1810461 Q3311826 Q810012 Q507994 Q1125262 Q20711488 Q114819 Q274167 Q8873426 Q80379 Q379873 Q588470 Q170250 Q161687 Q11060926 Q715374 Q1316253 Q7558541 Q949228 Q1125566 Q18703028 Q691611 Q590098 Q19648591 Q2419344 Q470665 Q3024211 Q192142 Q318975 Q777591 Q773293 Q164963 Q15713892 Q248775 Q868483 Q3985991 Q58439 Q673153 Q1583966 Q18815806 Q162255 Q833292 Q1146570 Q7768400 Q1471230 Q1757288 Q15715647 Q608261 Q1759684 Q171300 Q102244 Q673198 Q3224298 Q172271 Q7752052 Q567298 Q179411 Q15046091
(c(Q6619679)|c(Q15619164),P1441,c(Q838948))
action argmin
action union
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q6619679
action find_reverse_tuple_counts
relation P1441
type Q838948
type Q15619164
[ANSWERS] are min number of fictional humanoids and abstract beings present in
[[{'concept': 'Q6619679'}, {'concept': 'Q15619164'}], 'P1441', {'concept': 'Q838948'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?n ) WHERE { ?q rdf:type ?l . VALUES ( ?l ) { ( ontology:Q6619679 ) ( ontology:Q15619164 ) } } GROUP BY ?g } . FILTER ( ?n = ?i ) . { SELECT DISTINCT ( MIN ( ?j ) AS ?i ) { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?j ) WHERE { { ?u property:P1441 ?s . ?s rdf:type ontology:Q838948 . ?u rdf:type ontology:Q6619679 } UNION { ?u property:P1441 ?s . ?s rdf:type ontology:Q838948 . ?u rdf:type ontology:Q15619164 } } GROUP BY ?s } } }
Vampirella Perros callejeros Gone with the Wind Les Misérables Soul Food The Jungle Book 2 The Memorandum Ma and Pa Kettle Pacific Rim Julius Caesar Transformers The Hobbit: The Desolation of Smaug Mulan A Chinese Tall Story Star Trek: Nemesis Pokémon the Movie: Diancie and the Cocoon of Destruction Me Two The Creature Walks Among Us Las adolescentes Million Dollar Arm Una Película de Huevos Journey to the West: Conquering the Demons Basic Instinct Romeo and Juliet The Empire Strikes Back One Flew Over the Cuckoo's Nest Godzilla: Final Wars Divergent Tombstone A Bridge Too Far Peter Pan The Hobbit: The Battle of the Five Armies Indiana Jones and the Temple of Doom The Divergent Series: Insurgent Raiders of the Lost Ark Bloodfist II Jumanji Star Trek: First Contact The Prince of Egypt Kamen Rider Blade: Missing Ace Indiana Jones and the Kingdom of the Crystal Skull Indiana Jones 5 All the President's Men The Sleepy Twinkle Star Exodus: Gods and Kings Terminator Genisys The Mask Indiana Jones and the Last Crusade Bloodfist Hamlet Avatar Creature from the Black Lagoon The Kingdom of Solomon Dead Silence The Forbidden Kingdom Secret of the Wings The Ten Commandments Highlander Monsters University Cloverfield Bridge of Spies Springtime with Roo Mickey's Follies Basic Instinct 2 The Hunt for Red October Mad Max 2 Harry Potter and the Cursed Child Dune The Exorcist Voyage to the Bottom of the Sea The Hobbit: An Unexpected Journey Who Framed Roger Rabbit Ernest Goes to Camp Bicentennial Man Harry Potter and the Half-Blood Prince A Walk Among the Tombstones Initial D Solomon and Sheba Solomon & Sheba Sholay Duck Soup Now You See Me: The Second Act Serenity Ultimate Avengers 2 The Divergent Series: Allegiant Revenge of the Creature Secretariat La Cité de la peur Terminator 3: Rise of the Machines Atlantis: The Lost Empire For Love of the Game The Bible: In the Beginning The Lord of the Rings: The Two Towers Pan Mad Max A Chinese Odyssey The Black Cobra 2 Teenage Mutant Ninja Turtles Same Old Song Underdog Pokémon the Movie: Hoopa and the Clash of Ages The Terminator Night of the Seagulls Howard the Duck The Ten Commandments History of the World, Part I Mad Max: Fury Road Survivor Assemblywomen Atragon The Princess and the Frog Harry Potter and the Chamber of Secrets Star Trek: Insurrection Tangled Ever After Maleficent The Monkey King The Last Trapper A Very Merry Pooh Year Cinderella
Harry Potter and the Chamber of Secrets, Gone with the Wind and Bridge of Spies are min number of fictional humanoids and abstract beings present in
Harry Potter and the Chamber of Secrets Gone with the Wind Bridge of Spies
action argmin
action union
action find_reverse_tuple_counts
relation present in work
type work of art
type fictional humanoid
action find_reverse_tuple_counts
relation present in work
type work of art
type abstract being
[[{'concept': 'fictional humanoid'}, {'concept': 'abstract being'}], 'present in work', {'concept': 'work of art'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?n ) WHERE { ?q rdf:type ?l . VALUES ( ?l ) { ( ontology:fictional_humanoid ) ( ontology:abstract_being ) } } GROUP BY ?g } . FILTER ( ?n = ?i ) . { SELECT DISTINCT ( MIN ( ?j ) AS ?i ) { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?j ) WHERE { { ?u property:present_in_work ?s . ?s rdf:type ontology:work_of_art . ?u rdf:type ontology:fictional_humanoid } UNION { ?u property:present_in_work ?s . ?s rdf:type ontology:work_of_art . ?u rdf:type ontology:abstract_being } } GROUP BY ?s } } }
[]