Simple Question (Direct)
Simple Question
Q3361617
P27
Q15617994
USER
Which administrative territory is the native country of June Whitfield ?
(Q3361617,P27,c(Q15617994))
action filter_type
action find
entity Q3361617
relation P27
type Q15617994
['Q3361617', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q3361617 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
June Whitfield
action filter_type
action find
entity June Whitfield
relation country of citizenship
type designation for an administrative territorial entity
['June Whitfield', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:June_Whitfield property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q3361617,P27,c(Q15617994))
action filter_type
action find
entity Q3361617
relation P27
type Q15617994
The [ANSWER] is the native country of June Whitfield
['Q3361617', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q3361617 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
United Kingdom
The United Kingdom is the native country of June Whitfield
United Kingdom
action filter_type
action find
entity June Whitfield
relation country of citizenship
type designation for an administrative territorial entity
['June Whitfield', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:June_Whitfield property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3361617
P161
Q15416
USER
Which television programs stars that person as actor ?
(c(Q15416),P161,Q145)
action filter_type
action find_reverse
entity Q3361617
relation P161
type Q15416
[{'concept': 'Q15416'}, 'P161', 'Q145']
SELECT DISTINCT ?v WHERE { ?v property:P161 resource:Q3361617 . ?v rdf:type ontology:Q15416 }
June Whitfield
action filter_type
action find_reverse
entity June Whitfield
relation cast member
type television program
[{'concept': 'television program'}, 'cast member', 'United Kingdom']
SELECT DISTINCT ?v WHERE { ?v property:cast_member resource:June_Whitfield . ?v rdf:type ontology:television_program }
[]
television program
Q2036203 Q7705176 Q332554
SYSTEM
Wyrd Sisters, Terry and June, Absolutely Fabulous
Q332554 Q2036203 Q3783274 Q7705176 Q7714554
(c(Q15416),P161,Q145)
action filter_type
action find_reverse
entity Q3361617
relation P161
type Q15416
[ANSWERS] star that person as actor
[{'concept': 'Q15416'}, 'P161', 'Q145']
SELECT DISTINCT ?v WHERE { ?v property:P161 resource:Q3361617 . ?v rdf:type ontology:Q15416 }
Absolutely Fabulous Wyrd Sisters Happy Ever After Terry and June The Arthur Askey Show
Wyrd Sisters, Terry and June and Absolutely Fabulous star that person as actor
Wyrd Sisters Terry and June Absolutely Fabulous
action filter_type
action find_reverse
entity June Whitfield
relation cast member
type television program
[{'concept': 'television program'}, 'cast member', 'United Kingdom']
SELECT DISTINCT ?v WHERE { ?v property:cast_member resource:June_Whitfield . ?v rdf:type ontology:television_program }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q2036203 Q7705176 Q332554
P161
Q502895
USER
Who were casted in those television programs ?
(Q2036203,P161,c(Q502895)) (Q7705176,P161,c(Q502895)) (Q332554,P161,c(Q502895))
action filter_type
action find
entity prev_answer
relation P161
type Q502895
['Q2036203', 'P161', {'concept': 'Q502895'}] ['Q7705176', 'P161', {'concept': 'Q502895'}] ['Q332554', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { ?g property:P161 ?c . VALUES ( ?g ) { ( resource:Q332554 ) ( resource:Q2036203 ) ( resource:Q3783274 ) } . ?c rdf:type ontology:Q502895 }
Wyrd Sisters Terry and June Absolutely Fabulous
action filter_type
action find
entity prev_answer
relation cast member
type common name
['Wyrd Sisters', 'cast member', {'concept': 'common name'}] ['Terry and June', 'cast member', {'concept': 'common name'}] ['Absolutely Fabulous', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { ?g property:cast_member ?c . VALUES ( ?g ) { ( resource:Absolutely_Fabulous ) ( resource:Wyrd_Sisters ) ( resource:Happy_Ever_After ) } . ?c rdf:type ontology:common_name }
[]
common name
Q180338 Q235415 Q254886
SYSTEM
Christopher Lee, Jennifer Saunders, Joanna Lumley
Q180338 Q468811 Q6529408 Q7340483 Q237178 Q3361617 Q2851506 Q6200354 Q6253652 Q7368364 Q1242516 Q1796215 Q2601188 Q1380295 Q3528581 Q3361617 Q272567 Q235415 Q254886 Q3361617 Q237178
(Q2036203,P161,c(Q502895)) (Q7705176,P161,c(Q502895)) (Q332554,P161,c(Q502895))
action filter_type
action find
entity prev_answer
relation P161
type Q502895
[ANSWERS] were casted in those television programs
['Q2036203', 'P161', {'concept': 'Q502895'}] ['Q7705176', 'P161', {'concept': 'Q502895'}] ['Q332554', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { ?g property:P161 ?c . VALUES ( ?g ) { ( resource:Q332554 ) ( resource:Q2036203 ) ( resource:Q3783274 ) } . ?c rdf:type ontology:Q502895 }
Christopher Lee Eleanor Bron Les Dennis Rob Rackstraw Jane Horrocks June Whitfield Annette Crosbie Jimmy Hibbert John Quayle Rosemary Frankau Reginald Marsh Terence Alexander Allan Cuthbertson Terry Scott Tim Barrett June Whitfield Julia Sawalha Jennifer Saunders Joanna Lumley June Whitfield Jane Horrocks
Christopher Lee, Jennifer Saunders and Joanna Lumley were casted in those television programs
Christopher Lee Jennifer Saunders Joanna Lumley
action filter_type
action find
entity prev_answer
relation cast member
type common name
['Wyrd Sisters', 'cast member', {'concept': 'common name'}] ['Terry and June', 'cast member', {'concept': 'common name'}] ['Absolutely Fabulous', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { ?g property:cast_member ?c . VALUES ( ?g ) { ( resource:Absolutely_Fabulous ) ( resource:Wyrd_Sisters ) ( resource:Happy_Ever_After ) } . ?c rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q180338 Q235415 Q254886
P161
Q15416
USER
Which television programs do those people star in ?
(c(Q15416),P161,Q180338) (c(Q15416),P161,Q235415) (c(Q15416),P161,Q254886)
action filter_type
action find_reverse
entity prev_answer
relation P161
type Q15416
[{'concept': 'Q15416'}, 'P161', 'Q180338'] [{'concept': 'Q15416'}, 'P161', 'Q235415'] [{'concept': 'Q15416'}, 'P161', 'Q254886']
SELECT DISTINCT ?x WHERE { ?x property:P161 ?n . VALUES ( ?n ) { ( resource:Q180338 ) ( resource:Q468811 ) ( resource:Q6529408 ) } . ?x rdf:type ontology:Q15416 }
Christopher Lee Jennifer Saunders Joanna Lumley
action filter_type
action find_reverse
entity prev_answer
relation cast member
type television program
[{'concept': 'television program'}, 'cast member', 'Christopher Lee'] [{'concept': 'television program'}, 'cast member', 'Jennifer Saunders'] [{'concept': 'television program'}, 'cast member', 'Joanna Lumley']
SELECT DISTINCT ?x WHERE { ?x property:cast_member ?n . VALUES ( ?n ) { ( resource:Christopher_Lee ) ( resource:Eleanor_Bron ) ( resource:Les_Dennis ) } . ?x rdf:type ontology:television_program }
[]
television program
Q935421 Q1890400 Q3208799
SYSTEM
Treasure Island, Terry Pratchett's The Colour of Magic, Cold Comfort Farm
Q935421 Q4380266 Q5299935 Q3481952 Q1211352 Q2036203 Q1890400 Q1181267 Q130627 Q746044 Q1878704 Q6532967 Q2395707 Q332554 Q11722688 Q2395707 Q332554 Q7451056 Q5127966 Q2250446 Q391056 Q2154727 Q3208799
(c(Q15416),P161,Q180338) (c(Q15416),P161,Q235415) (c(Q15416),P161,Q254886)
action filter_type
action find_reverse
entity prev_answer
relation P161
type Q15416
Those people star in [ANSWERS]
[{'concept': 'Q15416'}, 'P161', 'Q180338'] [{'concept': 'Q15416'}, 'P161', 'Q235415'] [{'concept': 'Q15416'}, 'P161', 'Q254886']
SELECT DISTINCT ?x WHERE { ?x property:P161 ?n . VALUES ( ?n ) { ( resource:Q180338 ) ( resource:Q468811 ) ( resource:Q6529408 ) } . ?x rdf:type ontology:Q15416 }
Treasure Island Incident at Victoria Falls Double Vision Sherlock Holmes and the Leading Lady Moses Wyrd Sisters Terry Pratchett's The Colour of Magic Death Train Pope John Paul II Happy Families The Life and Times of Vivienne Vyle Let Them Eat Cake Jam & Jerusalem Absolutely Fabulous The New Avengers Jam & Jerusalem Absolutely Fabulous Sensitive Skin Class Act Sapphire & Steel Agatha Christie's Marple The Tale of Sweeney Todd Cold Comfort Farm
Those people star in Treasure Island, Terry Pratchett's The Colour of Magic and Cold Comfort Farm
Treasure Island Terry Pratchett's The Colour of Magic Cold Comfort Farm
action filter_type
action find_reverse
entity prev_answer
relation cast member
type television program
[{'concept': 'television program'}, 'cast member', 'Christopher Lee'] [{'concept': 'television program'}, 'cast member', 'Jennifer Saunders'] [{'concept': 'television program'}, 'cast member', 'Joanna Lumley']
SELECT DISTINCT ?x WHERE { ?x property:cast_member ?n . VALUES ( ?n ) { ( resource:Christopher_Lee ) ( resource:Eleanor_Bron ) ( resource:Les_Dennis ) } . ?x rdf:type ontology:television_program }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q935421
P162
Q502895
USER
Who produced Treasure Island ?
(Q935421,P162,c(Q502895))
action filter_type
action find
entity Q935421
relation P162
type Q502895
['Q935421', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q935421 property:P162 ?i . ?i rdf:type ontology:Q502895 }
Treasure Island
action filter_type
action find
entity Treasure Island
relation producer
type common name
['Treasure Island', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Treasure_Island property:producer ?i . ?i rdf:type ontology:common_name }
[]
common name
Q654900
SYSTEM
Fraser Clarke Heston
Q654900
(Q935421,P162,c(Q502895))
action filter_type
action find
entity Q935421
relation P162
type Q502895
The [ANSWER] produced Treasure Island
['Q935421', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q935421 property:P162 ?i . ?i rdf:type ontology:Q502895 }
Fraser Clarke Heston
The Fraser Clarke Heston produced Treasure Island
Fraser Clarke Heston
action filter_type
action find
entity Treasure Island
relation producer
type common name
['Treasure Island', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Treasure_Island property:producer ?i . ?i rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3960575
Q502895
USER
And how about Siluri umani?
(Q3960575,P162,c(Q502895))
action filter_type
action find
entity Q3960575
relation P162
type Q502895
['Q3960575', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q3960575 property:P162 ?o . ?o rdf:type ontology:Q502895 }
Siluri umani
action filter_type
action find
entity Siluri umani
relation producer
type common name
['Siluri umani', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Siluri_umani property:producer ?o . ?o rdf:type ontology:common_name }
[]
common name
Q299419 Q296796
SYSTEM
Carlo Ponti, Sr., Dino De Laurentiis
Q299419 Q296796
(Q3960575,P162,c(Q502895))
action filter_type
action find
entity Q3960575
relation P162
type Q502895
[ANSWERS]
['Q3960575', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q3960575 property:P162 ?o . ?o rdf:type ontology:Q502895 }
Carlo Ponti, Sr. Dino De Laurentiis
Carlo Ponti, Sr. Dino De Laurentiis
action filter_type
action find
entity Siluri umani
relation producer
type common name
['Siluri umani', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Siluri_umani property:producer ?o . ?o rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q388675
P162
Q838948
USER
Have La Tratta delle bianche been developed by those people ?
(Q388675,P162,Q299419) (Q388675,P162,Q296796)
action is_in
entity prev_answer
action find
entity Q388675
relation P162
['Q388675', 'P162', 'Q299419'] ['Q388675', 'P162', 'Q296796']
ASK WHERE { resource:Q388675 property:P162 ?e . VALUES ( ?e ) { ( resource:Q299419 ) ( resource:Q296796 ) } }
La Tratta delle bianche
action is_in
entity prev_answer
action find
entity La Tratta delle bianche
relation producer
['La Tratta delle bianche', 'producer', 'Carlo Ponti, Sr.'] ['La Tratta delle bianche', 'producer', 'Dino De Laurentiis']
ASK WHERE { resource:La_Tratta_delle_bianche property:producer ?e . VALUES ( ?e ) { ( resource:Carlo_Ponti,_Sr. ) ( resource:Dino_De_Laurentiis ) } }
[]
work of art
SYSTEM
YES
(Q388675,P162,Q299419) (Q388675,P162,Q296796)
action is_in
entity prev_answer
action find
entity Q388675
relation P162
[ANSWER]
['Q388675', 'P162', 'Q299419'] ['Q388675', 'P162', 'Q296796']
ASK WHERE { resource:Q388675 property:P162 ?e . VALUES ( ?e ) { ( resource:Q299419 ) ( resource:Q296796 ) } }
Yes
action is_in
entity prev_answer
action find
entity La Tratta delle bianche
relation producer
['La Tratta delle bianche', 'producer', 'Carlo Ponti, Sr.'] ['La Tratta delle bianche', 'producer', 'Dino De Laurentiis']
ASK WHERE { resource:La_Tratta_delle_bianche property:producer ?e . VALUES ( ?e ) { ( resource:Carlo_Ponti,_Sr. ) ( resource:Dino_De_Laurentiis ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q296796
P1431
Q838948
USER
Which works of art had Dino De Laurentiis as an executive producer of ?
(c(Q838948),P1431,Q296796)
action filter_type
action find_reverse
entity Q296796
relation P1431
type Q838948
[{'concept': 'Q838948'}, 'P1431', 'Q296796']
SELECT DISTINCT ?u WHERE { ?u property:P1431 resource:Q296796 . ?u rdf:type ontology:Q838948 }
Dino De Laurentiis
action filter_type
action find_reverse
entity Dino De Laurentiis
relation executive producer
type work of art
[{'concept': 'work of art'}, 'executive producer', 'Dino De Laurentiis']
SELECT DISTINCT ?u WHERE { ?u property:executive_producer resource:Dino_De_Laurentiis . ?u rdf:type ontology:work_of_art }
[]
work of art
Q114819 Q657079 Q466792
SYSTEM
Dune, Serpico, The Dead Zone
Q466792 Q740516 Q535852 Q458033 Q657079 Q114819 Q668967 Q46637
(c(Q838948),P1431,Q296796)
action filter_type
action find_reverse
entity Q296796
relation P1431
type Q838948
[ANSWERS] had Dino De Laurentiis as an executive producer of
[{'concept': 'Q838948'}, 'P1431', 'Q296796']
SELECT DISTINCT ?u WHERE { ?u property:P1431 resource:Q296796 . ?u rdf:type ontology:Q838948 }
The Dead Zone Conan the Destroyer Guendalina Three Days of the Condor Serpico Dune Malombra Maximum Overdrive
Dune, Serpico and The Dead Zone had Dino De Laurentiis as an executive producer of
Dune Serpico The Dead Zone
action filter_type
action find_reverse
entity Dino De Laurentiis
relation executive producer
type work of art
[{'concept': 'work of art'}, 'executive producer', 'Dino De Laurentiis']
SELECT DISTINCT ?u WHERE { ?u property:executive_producer resource:Dino_De_Laurentiis . ?u rdf:type ontology:work_of_art }
[]
Clarification
Simple Question|Single Entity|Indirect
Q466792
P136
Q1792379
USER
What can be considered as category for that work of art ?
(Q466792,P136,c(Q1792379))
action filter_type
action find
entity Q466792
relation P136
type Q1792379
['Q466792', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1792379 . resource:Q466792 property:P136 ?m }
The Dead Zone
action filter_type
action find
entity The Dead Zone
relation genre
type art genre
['The Dead Zone', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:art_genre . resource:The_Dead_Zone property:genre ?m }
[]
art genre
Clarification for simple ques.
Q114819
SYSTEM
Did you mean Dune ?
Q114819 Q657079 Q466792
(Q114819,P136,c(Q1792379)) (Q657079,P136,c(Q1792379)) (Q466792,P136,c(Q1792379))
[ANSWER]
['Q114819', 'P136', {'concept': 'Q1792379'}] ['Q657079', 'P136', {'concept': 'Q1792379'}] ['Q466792', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1792379 . resource:Q466792 property:P136 ?m }
Dune Serpico The Dead Zone
Did you mean Dune ?
Dune
['Dune', 'genre', {'concept': 'art genre'}] ['Serpico', 'genre', {'concept': 'art genre'}] ['The Dead Zone', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:art_genre . resource:The_Dead_Zone property:genre ?m }
[]
Simple Question (Coreferenced)
USER
No, I meant The Dead Zone. Could you tell me the answer for that?
(Q466792,P136,c(Q1792379))
Q466792
['Q466792', 'P136', {'concept': 'Q1792379'}]
['The Dead Zone', 'genre', {'concept': 'art genre'}]
[]
Q622291 Q200092
SYSTEM
political thriller, horror film
Q622291 Q200092
(Q466792,P136,c(Q1792379))
action filter_type
action find
entity Q466792
relation P136
type Q1792379
And [ANSWERS] can be considered as category for that work of art
['Q466792', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1792379 . resource:Q466792 property:P136 ?m }
political thriller horror film
And political thriller and horror film can be considered as category for that work of art
political thriller horror film
action filter_type
action find
entity The Dead Zone
relation genre
type art genre
['The Dead Zone', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:art_genre . resource:The_Dead_Zone property:genre ?m }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q1792379 Q874405 Q1792379
USER
Which art genres express atleast 1 art genres or social groups ?
(c(Q1792379),P180,c(Q1792379)|c(Q874405))
action atleast
action union
action find_tuple_counts
relation P180
type Q1792379
type Q1792379
action find_tuple_counts
relation P180
type Q1792379
type Q874405
value 1
[{'concept': 'Q1792379'}, 'P180', [{'concept': 'Q1792379'}, {'concept': 'Q874405'}]]
SELECT DISTINCT ?f WHERE { FILTER ( ?p >= 1 ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) ?f WHERE { { ?f property:P180 ?v . ?f rdf:type ontology:Q1792379 . ?v rdf:type ontology:Q1792379 } UNION { ?f property:P180 ?v . ?v rdf:type ontology:Q874405 . ?f rdf:type ontology:Q1792379 } } GROUP BY ?f } }
action atleast
action union
action find_tuple_counts
relation depicts
type art genre
type art genre
action find_tuple_counts
relation depicts
type art genre
type social group
value 1
[{'concept': 'art genre'}, 'depicts', [{'concept': 'art genre'}, {'concept': 'social group'}]]
SELECT DISTINCT ?f WHERE { FILTER ( ?p >= 1 ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) ?f WHERE { { ?f property:depicts ?v . ?f rdf:type ontology:art_genre . ?v rdf:type ontology:art_genre } UNION { ?f property:depicts ?v . ?v rdf:type ontology:social_group . ?f rdf:type ontology:art_genre } } GROUP BY ?f } }
[]
art genre social group art genre
Q2963437 Q22575803
SYSTEM
One Thousand Pictures of the Ocean (Chie no umi), Going swimming, from the theme mother and child
Q2963437 Q22575803
(c(Q1792379),P180,c(Q1792379)|c(Q874405))
action atleast
action union
action find_tuple_counts
relation P180
type Q1792379
type Q1792379
action find_tuple_counts
relation P180
type Q1792379
type Q874405
value 1
[ANSWERS]
[{'concept': 'Q1792379'}, 'P180', [{'concept': 'Q1792379'}, {'concept': 'Q874405'}]]
SELECT DISTINCT ?f WHERE { FILTER ( ?p >= 1 ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) ?f WHERE { { ?f property:P180 ?v . ?f rdf:type ontology:Q1792379 . ?v rdf:type ontology:Q1792379 } UNION { ?f property:P180 ?v . ?v rdf:type ontology:Q874405 . ?f rdf:type ontology:Q1792379 } } GROUP BY ?f } }
One Thousand Pictures of the Ocean (Chie no umi) Going swimming, from the theme mother and child
One Thousand Pictures of the Ocean (Chie no umi) and going swimming, from the theme mother and child express atleast 1 art genres or social groups
One Thousand Pictures of the Ocean (Chie no umi) Going swimming, from the theme mother and child
action atleast
action union
action find_tuple_counts
relation depicts
type art genre
type art genre
action find_tuple_counts
relation depicts
type art genre
type social group
value 1
[{'concept': 'art genre'}, 'depicts', [{'concept': 'art genre'}, {'concept': 'social group'}]]
SELECT DISTINCT ?f WHERE { FILTER ( ?p >= 1 ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) ?f WHERE { { ?f property:depicts ?v . ?f rdf:type ontology:art_genre . ?v rdf:type ontology:art_genre } UNION { ?f property:depicts ?v . ?v rdf:type ontology:social_group . ?f rdf:type ontology:art_genre } } GROUP BY ?f } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q4261775 Q235415
P27 P495
Q15617994
USER
Which administrative territories do Jennifer Saunders belong to and are the origin of Black Coffee ?
AND((Q235415,P27,c(Q15617994)), (Q4261775,P495,c(Q15617994)))
action filter_type
action intersection
action find
entity Q235415
relation P27
action find
entity Q4261775
relation P495
type Q15617994
{'AND': [['Q235415', 'P27', {'concept': 'Q15617994'}], ['Q4261775', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { resource:Q235415 property:P27 ?a . resource:Q4261775 property:P495 ?a . ?a rdf:type ontology:Q15617994 }
Black Coffee Jennifer Saunders
action filter_type
action intersection
action find
entity Jennifer Saunders
relation country of citizenship
action find
entity Black Coffee
relation country of origin
type designation for an administrative territorial entity
{'AND': [['Jennifer Saunders', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Black Coffee', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { resource:Jennifer_Saunders property:country_of_citizenship ?a . resource:Black_Coffee property:country_of_origin ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
AND((Q235415,P27,c(Q15617994)), (Q4261775,P495,c(Q15617994)))
action filter_type
action intersection
action find
entity Q235415
relation P27
action find
entity Q4261775
relation P495
type Q15617994
Jennifer Saunders belong to the [ANSWER] and are the origin of Black Coffee
{'AND': [['Q235415', 'P27', {'concept': 'Q15617994'}], ['Q4261775', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { resource:Q235415 property:P27 ?a . resource:Q4261775 property:P495 ?a . ?a rdf:type ontology:Q15617994 }
United Kingdom
Jennifer Saunders belong to the United Kingdom and are the origin of Black Coffee
United Kingdom
action filter_type
action intersection
action find
entity Jennifer Saunders
relation country of citizenship
action find
entity Black Coffee
relation country of origin
type designation for an administrative territorial entity
{'AND': [['Jennifer Saunders', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Black Coffee', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { resource:Jennifer_Saunders property:country_of_citizenship ?a . resource:Black_Coffee property:country_of_origin ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q145 Q835429
P915
Q838948
USER
How many works of art were filmed at United Kingdom or Westallgäu ?
(c(Q838948),P915,Q145) (c(Q838948),P915,Q835429)
action count
action union
action filter_type
action find_reverse
entity Q145
relation P915
type Q838948
action filter_type
action find_reverse
entity Q835429
relation P915
type Q838948
[{'concept': 'Q838948'}, 'P915', 'Q145'] [{'concept': 'Q838948'}, 'P915', 'Q835429']
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { { ?e property:P915 resource:Q145 . ?e rdf:type ontology:Q838948 } UNION { ?e property:P915 resource:Q835429 . ?e rdf:type ontology:Q838948 } }
United Kingdom Westallgäu
action count
action union
action filter_type
action find_reverse
entity United Kingdom
relation filming location
type work of art
action filter_type
action find_reverse
entity Westallgäu
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'United Kingdom'] [{'concept': 'work of art'}, 'filming location', 'Westallgäu']
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { { ?e property:filming_location resource:United_Kingdom . ?e rdf:type ontology:work_of_art } UNION { ?e property:filming_location resource:Westallgäu . ?e rdf:type ontology:work_of_art } }
[]
work of art
SYSTEM
2
Q1157412 Q15631013
(c(Q838948),P915,Q145) (c(Q838948),P915,Q835429)
action count
action union
action filter_type
action find_reverse
entity Q145
relation P915
type Q838948
action filter_type
action find_reverse
entity Q835429
relation P915
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P915', 'Q145'] [{'concept': 'Q838948'}, 'P915', 'Q835429']
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { { ?e property:P915 resource:Q145 . ?e rdf:type ontology:Q838948 } UNION { ?e property:P915 resource:Q835429 . ?e rdf:type ontology:Q838948 } }
Daheim sterben die Leut' Everest
2
action count
action union
action filter_type
action find_reverse
entity United Kingdom
relation filming location
type work of art
action filter_type
action find_reverse
entity Westallgäu
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'United Kingdom'] [{'concept': 'work of art'}, 'filming location', 'Westallgäu']
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { { ?e property:filming_location resource:United_Kingdom . ?e rdf:type ontology:work_of_art } UNION { ?e property:filming_location resource:Westallgäu . ?e rdf:type ontology:work_of_art } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P941
Q838948 Q491040 Q15416
USER
Which television programs had exactly 1 works of art or violent crimes as a source of inspiration ?
(c(Q15416),P941,c(Q838948)|c(Q491040))
action equal
action union
action find_tuple_counts
relation P941
type Q15416
type Q838948
action find_tuple_counts
relation P941
type Q15416
type Q491040
value 1
[{'concept': 'Q15416'}, 'P941', [{'concept': 'Q838948'}, {'concept': 'Q491040'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) ?p WHERE { { ?p property:P941 ?h . ?p rdf:type ontology:Q15416 . ?h rdf:type ontology:Q838948 } UNION { ?p property:P941 ?h . ?p rdf:type ontology:Q15416 . ?h rdf:type ontology:Q491040 } } GROUP BY ?p } . FILTER ( ?l = 1 ) }
action equal
action union
action find_tuple_counts
relation inspired by
type television program
type work of art
action find_tuple_counts
relation inspired by
type television program
type violent crime
value 1
[{'concept': 'television program'}, 'inspired by', [{'concept': 'work of art'}, {'concept': 'violent crime'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) ?p WHERE { { ?p property:inspired_by ?h . ?p rdf:type ontology:television_program . ?h rdf:type ontology:work_of_art } UNION { ?p property:inspired_by ?h . ?p rdf:type ontology:television_program . ?h rdf:type ontology:violent_crime } } GROUP BY ?p } . FILTER ( ?l = 1 ) }
[]
work of art violent crime television program
Q5920647 Q169074 Q22266766
SYSTEM
Isaac and Ishmael, 10 Things I Hate About You, Animal Kingdom
Q9357747 Q5920647 Q15119348 Q169074 Q22266766
(c(Q15416),P941,c(Q838948)|c(Q491040))
action equal
action union
action find_tuple_counts
relation P941
type Q15416
type Q838948
action find_tuple_counts
relation P941
type Q15416
type Q491040
value 1
Isaac and Ishmael, 10 Things I hate About You and Animal Kingdom had exactly 1 works of art or violent crimes as a source of inspiration
[{'concept': 'Q15416'}, 'P941', [{'concept': 'Q838948'}, {'concept': 'Q491040'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) ?p WHERE { { ?p property:P941 ?h . ?p rdf:type ontology:Q15416 . ?h rdf:type ontology:Q838948 } UNION { ?p property:P941 ?h . ?p rdf:type ontology:Q15416 . ?h rdf:type ontology:Q491040 } } GROUP BY ?p } . FILTER ( ?l = 1 ) }
The Absent-Minded Professor Isaac and Ishmael The Philadelphia Experiment 10 Things I Hate About You Animal Kingdom
Isaac and Ishmael, 10 Things I hate About You and Animal Kingdom had exactly 1 works of art or violent crimes as a source of inspiration
Isaac and Ishmael 10 Things I Hate About You Animal Kingdom
action equal
action union
action find_tuple_counts
relation inspired by
type television program
type work of art
action find_tuple_counts
relation inspired by
type television program
type violent crime
value 1
[{'concept': 'television program'}, 'inspired by', [{'concept': 'work of art'}, {'concept': 'violent crime'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) ?p WHERE { { ?p property:inspired_by ?h . ?p rdf:type ontology:television_program . ?h rdf:type ontology:work_of_art } UNION { ?p property:inspired_by ?h . ?p rdf:type ontology:television_program . ?h rdf:type ontology:violent_crime } } GROUP BY ?p } . FILTER ( ?l = 1 ) }
[]