Simple Question (Direct)
Simple Question
Q3001994
P54
Q1194951
USER
What is Craig Conway a member of ?
(Q3001994,P54,c(Q1194951))
action filter_type
action find
entity Q3001994
relation P54
type Q1194951
['Q3001994', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?d WHERE { resource:Q3001994 property:P54 ?d . ?d rdf:type ontology:Q1194951 }
Craig Conway
action filter_type
action find
entity Craig Conway
relation member of sports team
type national sports team
['Craig Conway', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?d WHERE { resource:Craig_Conway property:member_of_sports_team ?d . ?d rdf:type ontology:national_sports_team }
[]
national sports team
Q34044
SYSTEM
Scotland national football team
Q34044
(Q3001994,P54,c(Q1194951))
action filter_type
action find
entity Q3001994
relation P54
type Q1194951
Craig Conway a member of is of [ANSWER]
['Q3001994', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?d WHERE { resource:Q3001994 property:P54 ?d . ?d rdf:type ontology:Q1194951 }
Scotland national football team
Craig Conway a member of is of Scotland national football team
Scotland national football team
action filter_type
action find
entity Craig Conway
relation member of sports team
type national sports team
['Craig Conway', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?d WHERE { resource:Craig_Conway property:member_of_sports_team ?d . ?d rdf:type ontology:national_sports_team }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3001994
P106
Q12737077
USER
What does Craig Conway do for a living ?
(Q3001994,P106,c(Q12737077))
action filter_type
action find
entity Q3001994
relation P106
type Q12737077
['Q3001994', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q3001994 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
Craig Conway
action filter_type
action find
entity Craig Conway
relation occupation
type occupation
['Craig Conway', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Craig_Conway property:occupation ?w . ?w rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q3001994,P106,c(Q12737077))
action filter_type
action find
entity Q3001994
relation P106
type Q12737077
Craig Conway does an [ANSWER] for a living
['Q3001994', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q3001994 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
association football player
Craig Conway does an association football player for a living
association football player
action filter_type
action find
entity Craig Conway
relation occupation
type occupation
['Craig Conway', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Craig_Conway property:occupation ?w . ?w rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3001994
P161
Q838948
USER
Which works of art do that person star in ?
(c(Q838948),P161,Q937857)
action filter_type
action find_reverse
entity Q3001994
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q937857']
SELECT DISTINCT ?r WHERE { ?r property:P161 resource:Q3001994 . ?r rdf:type ontology:Q838948 }
Craig Conway
action filter_type
action find_reverse
entity Craig Conway
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'association football player']
SELECT DISTINCT ?r WHERE { ?r property:cast_member resource:Craig_Conway . ?r rdf:type ontology:work_of_art }
[]
work of art
Q249151 Q1242543 Q1234664
SYSTEM
The Tournament, Doomsday, Dog Soldiers
Q249151 Q1242543 Q1234664
(c(Q838948),P161,Q937857)
action filter_type
action find_reverse
entity Q3001994
relation P161
type Q838948
That person star [ANSWERS]
[{'concept': 'Q838948'}, 'P161', 'Q937857']
SELECT DISTINCT ?r WHERE { ?r property:P161 resource:Q3001994 . ?r rdf:type ontology:Q838948 }
The Tournament Doomsday Dog Soldiers
That person star The Tournament, Doomsday and Dog Soldiers
The Tournament Doomsday Dog Soldiers
action filter_type
action find_reverse
entity Craig Conway
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'association football player']
SELECT DISTINCT ?r WHERE { ?r property:cast_member resource:Craig_Conway . ?r rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1242543
P495
Q15617994 Q1048835
USER
How many administrative territories or political territories are the countries of origin of Doomsday ?
(Q1242543,P495,c(Q15617994)) (Q1242543,P495,c(Q1048835))
action count
action union
action filter_type
action find
entity Q1242543
relation P495
type Q15617994
action filter_type
action find
entity Q1242543
relation P495
type Q1048835
['Q1242543', 'P495', {'concept': 'Q15617994'}] ['Q1242543', 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) WHERE { { resource:Q1242543 property:P495 ?y . ?y rdf:type ontology:Q15617994 } UNION { resource:Q1242543 property:P495 ?y . ?y rdf:type ontology:Q1048835 } }
Doomsday
action count
action union
action filter_type
action find
entity Doomsday
relation country of origin
type designation for an administrative territorial entity
action filter_type
action find
entity Doomsday
relation country of origin
type political territorial entity
['Doomsday', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['Doomsday', 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) WHERE { { resource:Doomsday property:country_of_origin ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Doomsday property:country_of_origin ?y . ?y rdf:type ontology:political_territorial_entity } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
3
Q30 Q183 Q145
(Q1242543,P495,c(Q15617994)) (Q1242543,P495,c(Q1048835))
action count
action union
action filter_type
action find
entity Q1242543
relation P495
type Q15617994
action filter_type
action find
entity Q1242543
relation P495
type Q1048835
[ANSWER]
['Q1242543', 'P495', {'concept': 'Q15617994'}] ['Q1242543', 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) WHERE { { resource:Q1242543 property:P495 ?y . ?y rdf:type ontology:Q15617994 } UNION { resource:Q1242543 property:P495 ?y . ?y rdf:type ontology:Q1048835 } }
United States of America Germany United Kingdom
3
action count
action union
action filter_type
action find
entity Doomsday
relation country of origin
type designation for an administrative territorial entity
action filter_type
action find
entity Doomsday
relation country of origin
type political territorial entity
['Doomsday', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['Doomsday', 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) WHERE { { resource:Doomsday property:country_of_origin ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Doomsday property:country_of_origin ?y . ?y rdf:type ontology:political_territorial_entity } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q5483226
P189
Q14524493 Q56061 Q838948
USER
How many works of art were discovered at more number of terrains and administrative territories than Fragment from the tomb of Nikarete ?
(c(Q838948),P189,c(Q14524493)|c(Q56061))
action count
action greater
action union
action find_tuple_counts
relation P189
type Q838948
type Q14524493
action find_tuple_counts
relation P189
type Q838948
type Q56061
action count
action filter_multi_types
action find
entity Q5483226
relation P189
type Q14524493
type Q56061
[{'concept': 'Q838948'}, 'P189', [{'concept': 'Q14524493'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?t ) WHERE { { ?b rdf:type ontology:Q838948 . ?g rdf:type ontology:Q14524493 . ?b property:P189 ?g } UNION { ?b property:P189 ?g . ?b rdf:type ontology:Q838948 . ?g rdf:type ontology:Q56061 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { resource:Q5483226 property:P189 ?n . { { ?n rdf:type ontology:Q56061 } UNION { ?n rdf:type ontology:Q14524493 } } } } . FILTER ( ?t > ?r ) }
Fragment from the tomb of Nikarete
action count
action greater
action union
action find_tuple_counts
relation location of discovery
type work of art
type terrain
action find_tuple_counts
relation location of discovery
type work of art
type administrative territorial entity
action count
action filter_multi_types
action find
entity Fragment from the tomb of Nikarete
relation location of discovery
type terrain
type administrative territorial entity
[{'concept': 'work of art'}, 'location of discovery', [{'concept': 'terrain'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?t ) WHERE { { ?b rdf:type ontology:work_of_art . ?g rdf:type ontology:terrain . ?b property:location_of_discovery ?g } UNION { ?b property:location_of_discovery ?g . ?b rdf:type ontology:work_of_art . ?g rdf:type ontology:administrative_territorial_entity } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { resource:Fragment_from_the_tomb_of_Nikarete property:location_of_discovery ?n . { { ?n rdf:type ontology:administrative_territorial_entity } UNION { ?n rdf:type ontology:terrain } } } } . FILTER ( ?t > ?r ) }
[]
terrain administrative territorial entity work of art
SYSTEM
31
Q3972841 Q15726561 Q9428681 Q681067 Q2148525 Q18668045 Q12397781 Q2233466 Q377296 Q2584518 Q7604487 Q20669412 Q15693822 Q24286014 Q131397 Q16331487 Q11863760 Q3516172 Q4891271 Q15284134 Q3026255 Q4680067 Q582172 Q3564172 Q16332506 Q17449805 Q21485077 Q20200021 Q23760769 Q18667809 Q3918311
(c(Q838948),P189,c(Q14524493)|c(Q56061))
action count
action greater
action union
action find_tuple_counts
relation P189
type Q838948
type Q14524493
action find_tuple_counts
relation P189
type Q838948
type Q56061
action count
action filter_multi_types
action find
entity Q5483226
relation P189
type Q14524493
type Q56061
[ANSWER]
[{'concept': 'Q838948'}, 'P189', [{'concept': 'Q14524493'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?t ) WHERE { { ?b rdf:type ontology:Q838948 . ?g rdf:type ontology:Q14524493 . ?b property:P189 ?g } UNION { ?b property:P189 ?g . ?b rdf:type ontology:Q838948 . ?g rdf:type ontology:Q56061 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { resource:Q5483226 property:P189 ?n . { { ?n rdf:type ontology:Q56061 } UNION { ?n rdf:type ontology:Q14524493 } } } } . FILTER ( ?t > ?r ) }
Raimondi Stela Worshipper of Larsa The Exaltation of the Flower Lady of Elche Ribchester Helmet The Old Fisherman stele with the code of Hammurabi Seated Woman of Çatalhöyük Venus of Petřkovice Diana of Versailles Statue of Iddi-Ilum Jupiter Heliopolitanus Satala Aphrodite Sit-shamshi Venus of Willendorf Thera Kouros Elk's Head of Huittinen Bull of Osuna Berenice Venus Lion of Knidos Diana of Gabii Adam of Govrlevo Nefertiti Bust Townley Venus Ploughman Antinous-Osiris Portrait of Alexander the Great Mistress of Lions Disk of Enheduanna Sauroctonos Borghese Capitoline Antinous
31
action count
action greater
action union
action find_tuple_counts
relation location of discovery
type work of art
type terrain
action find_tuple_counts
relation location of discovery
type work of art
type administrative territorial entity
action count
action filter_multi_types
action find
entity Fragment from the tomb of Nikarete
relation location of discovery
type terrain
type administrative territorial entity
[{'concept': 'work of art'}, 'location of discovery', [{'concept': 'terrain'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?t ) WHERE { { ?b rdf:type ontology:work_of_art . ?g rdf:type ontology:terrain . ?b property:location_of_discovery ?g } UNION { ?b property:location_of_discovery ?g . ?b rdf:type ontology:work_of_art . ?g rdf:type ontology:administrative_territorial_entity } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { resource:Fragment_from_the_tomb_of_Nikarete property:location_of_discovery ?n . { { ?n rdf:type ontology:administrative_territorial_entity } UNION { ?n rdf:type ontology:terrain } } } } . FILTER ( ?t > ?r ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q5315707
P189
Q14524493 Q56061 Q838948
USER
And also tell me about Dunstable Swan Jewel?
(c(Q838948),P189,c(Q14524493)|c(Q56061))
action count
action greater
action union
action find_tuple_counts
relation P189
type Q838948
type Q14524493
action find_tuple_counts
relation P189
type Q838948
type Q56061
action count
action filter_multi_types
action find
entity Q5315707
relation P189
type Q14524493
type Q56061
[{'concept': 'Q838948'}, 'P189', [{'concept': 'Q14524493'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) ?m WHERE { { ?m property:P189 ?s . ?m rdf:type ontology:Q838948 . ?s rdf:type ontology:Q14524493 } UNION { ?m property:P189 ?s . ?s rdf:type ontology:Q56061 . ?m rdf:type ontology:Q838948 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { resource:Q5315707 property:P189 ?g . { ?g rdf:type ?j . VALUES ( ?j ) { ( ontology:Q14524493 ) ( ontology:Q56061 ) } } } } . FILTER ( ?e > ?p ) }
Dunstable Swan Jewel
action count
action greater
action union
action find_tuple_counts
relation location of discovery
type work of art
type terrain
action find_tuple_counts
relation location of discovery
type work of art
type administrative territorial entity
action count
action filter_multi_types
action find
entity Dunstable Swan Jewel
relation location of discovery
type terrain
type administrative territorial entity
[{'concept': 'work of art'}, 'location of discovery', [{'concept': 'terrain'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) ?m WHERE { { ?m property:location_of_discovery ?s . ?m rdf:type ontology:work_of_art . ?s rdf:type ontology:terrain } UNION { ?m property:location_of_discovery ?s . ?s rdf:type ontology:administrative_territorial_entity . ?m rdf:type ontology:work_of_art } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { resource:Dunstable_Swan_Jewel property:location_of_discovery ?g . { ?g rdf:type ?j . VALUES ( ?j ) { ( ontology:terrain ) ( ontology:administrative_territorial_entity ) } } } } . FILTER ( ?e > ?p ) }
[]
terrain administrative territorial entity work of art
SYSTEM
31
Q3972841 Q15726561 Q9428681 Q681067 Q2148525 Q18668045 Q12397781 Q2233466 Q377296 Q2584518 Q7604487 Q20669412 Q15693822 Q24286014 Q131397 Q16331487 Q11863760 Q3516172 Q4891271 Q15284134 Q3026255 Q4680067 Q582172 Q3564172 Q16332506 Q17449805 Q21485077 Q20200021 Q23760769 Q18667809 Q3918311
(c(Q838948),P189,c(Q14524493)|c(Q56061))
action count
action greater
action union
action find_tuple_counts
relation P189
type Q838948
type Q14524493
action find_tuple_counts
relation P189
type Q838948
type Q56061
action count
action filter_multi_types
action find
entity Q5315707
relation P189
type Q14524493
type Q56061
[ANSWER]
[{'concept': 'Q838948'}, 'P189', [{'concept': 'Q14524493'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) ?m WHERE { { ?m property:P189 ?s . ?m rdf:type ontology:Q838948 . ?s rdf:type ontology:Q14524493 } UNION { ?m property:P189 ?s . ?s rdf:type ontology:Q56061 . ?m rdf:type ontology:Q838948 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { resource:Q5315707 property:P189 ?g . { ?g rdf:type ?j . VALUES ( ?j ) { ( ontology:Q14524493 ) ( ontology:Q56061 ) } } } } . FILTER ( ?e > ?p ) }
Raimondi Stela Worshipper of Larsa The Exaltation of the Flower Lady of Elche Ribchester Helmet The Old Fisherman stele with the code of Hammurabi Seated Woman of Çatalhöyük Venus of Petřkovice Diana of Versailles Statue of Iddi-Ilum Jupiter Heliopolitanus Satala Aphrodite Sit-shamshi Venus of Willendorf Thera Kouros Elk's Head of Huittinen Bull of Osuna Berenice Venus Lion of Knidos Diana of Gabii Adam of Govrlevo Nefertiti Bust Townley Venus Ploughman Antinous-Osiris Portrait of Alexander the Great Mistress of Lions Disk of Enheduanna Sauroctonos Borghese Capitoline Antinous
31
action count
action greater
action union
action find_tuple_counts
relation location of discovery
type work of art
type terrain
action find_tuple_counts
relation location of discovery
type work of art
type administrative territorial entity
action count
action filter_multi_types
action find
entity Dunstable Swan Jewel
relation location of discovery
type terrain
type administrative territorial entity
[{'concept': 'work of art'}, 'location of discovery', [{'concept': 'terrain'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) ?m WHERE { { ?m property:location_of_discovery ?s . ?m rdf:type ontology:work_of_art . ?s rdf:type ontology:terrain } UNION { ?m property:location_of_discovery ?s . ?s rdf:type ontology:administrative_territorial_entity . ?m rdf:type ontology:work_of_art } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) WHERE { resource:Dunstable_Swan_Jewel property:location_of_discovery ?g . { ?g rdf:type ?j . VALUES ( ?j ) { ( ontology:terrain ) ( ontology:administrative_territorial_entity ) } } } } . FILTER ( ?e > ?p ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P361
Q838948 Q15619164 Q7725634
USER
Which works of art are max number of abstract beings and literary works a part of ?
(c(Q15619164)|c(Q7725634),P361,c(Q838948))
action argmax
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q15619164
action find_reverse_tuple_counts
relation P361
type Q838948
type Q7725634
[[{'concept': 'Q15619164'}, {'concept': 'Q7725634'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?b ) { SELECT DISTINCT ?k ( COUNT ( ?i ) AS ?l ) WHERE { { ?i property:P361 ?k . ?k rdf:type ontology:Q838948 . ?i rdf:type ontology:Q15619164 } UNION { ?i property:P361 ?k . ?k rdf:type ontology:Q838948 . ?i rdf:type ontology:Q7725634 } } GROUP BY ?k } } . { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?w ) WHERE { { ?z property:P361 ?q . ?q rdf:type ontology:Q838948 . ?z rdf:type ontology:Q7725634 } UNION { ?z property:P361 ?q . ?q rdf:type ontology:Q838948 . ?z rdf:type ontology:Q15619164 } } GROUP BY ?q } . FILTER ( ?w = ?b ) }
action argmax
action union
action find_reverse_tuple_counts
relation part of
type work of art
type abstract being
action find_reverse_tuple_counts
relation part of
type work of art
type literary work
[[{'concept': 'abstract being'}, {'concept': 'literary work'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?b ) { SELECT DISTINCT ?k ( COUNT ( ?i ) AS ?l ) WHERE { { ?i property:part_of ?k . ?k rdf:type ontology:work_of_art . ?i rdf:type ontology:abstract_being } UNION { ?i property:part_of ?k . ?k rdf:type ontology:work_of_art . ?i rdf:type ontology:literary_work } } GROUP BY ?k } } . { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?w ) WHERE { { ?z property:part_of ?q . ?q rdf:type ontology:work_of_art . ?z rdf:type ontology:literary_work } UNION { ?z property:part_of ?q . ?q rdf:type ontology:work_of_art . ?z rdf:type ontology:abstract_being } } GROUP BY ?q } . FILTER ( ?w = ?b ) }
[]
work of art abstract being literary work
Q127367 Q18547944 Q945138
SYSTEM
The Lord of the Rings: The Fellowship of the Ring, The Martian, Bedknobs and Broomsticks
Q127367 Q10371896 Q18547944 Q733065 Q747847 Q945138 Q976149 Q632753 Q309153 Q1125687 Q24980 Q1230318
(c(Q15619164)|c(Q7725634),P361,c(Q838948))
action argmax
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q15619164
action find_reverse_tuple_counts
relation P361
type Q838948
type Q7725634
The [ANSWERS] max number of abstract beings and literary works a part of
[[{'concept': 'Q15619164'}, {'concept': 'Q7725634'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?b ) { SELECT DISTINCT ?k ( COUNT ( ?i ) AS ?l ) WHERE { { ?i property:P361 ?k . ?k rdf:type ontology:Q838948 . ?i rdf:type ontology:Q15619164 } UNION { ?i property:P361 ?k . ?k rdf:type ontology:Q838948 . ?i rdf:type ontology:Q7725634 } } GROUP BY ?k } } . { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?w ) WHERE { { ?z property:P361 ?q . ?q rdf:type ontology:Q838948 . ?z rdf:type ontology:Q7725634 } UNION { ?z property:P361 ?q . ?q rdf:type ontology:Q838948 . ?z rdf:type ontology:Q15619164 } } GROUP BY ?q } . FILTER ( ?w = ?b ) }
The Lord of the Rings: The Fellowship of the Ring Sing, Baby, Sing The Martian Dabangg New Orleans Bedknobs and Broomsticks Laura Babes in Arms Singin' in the Rain Teheran 43 Monty Python's The Meaning of Life Carefree
The The Lord of the Rings: The Fellowship of the Ring, The Martian and Bedknobs and Broomsticks max number of abstract beings and literary works a part of
The Lord of the Rings: The Fellowship of the Ring The Martian Bedknobs and Broomsticks
action argmax
action union
action find_reverse_tuple_counts
relation part of
type work of art
type abstract being
action find_reverse_tuple_counts
relation part of
type work of art
type literary work
[[{'concept': 'abstract being'}, {'concept': 'literary work'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?b ) { SELECT DISTINCT ?k ( COUNT ( ?i ) AS ?l ) WHERE { { ?i property:part_of ?k . ?k rdf:type ontology:work_of_art . ?i rdf:type ontology:abstract_being } UNION { ?i property:part_of ?k . ?k rdf:type ontology:work_of_art . ?i rdf:type ontology:literary_work } } GROUP BY ?k } } . { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?w ) WHERE { { ?z property:part_of ?q . ?q rdf:type ontology:work_of_art . ?z rdf:type ontology:literary_work } UNION { ?z property:part_of ?q . ?q rdf:type ontology:work_of_art . ?z rdf:type ontology:abstract_being } } GROUP BY ?q } . FILTER ( ?w = ?b ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q945138
P364
Q34770
USER
Which language was used originally for the creation of that work of art ?
(Q945138,P364,c(Q34770))
action filter_type
action find
entity Q945138
relation P364
type Q34770
['Q945138', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { resource:Q945138 property:P364 ?h . ?h rdf:type ontology:Q34770 }
Bedknobs and Broomsticks
action filter_type
action find
entity Bedknobs and Broomsticks
relation original language of work
type language
['Bedknobs and Broomsticks', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { resource:Bedknobs_and_Broomsticks property:original_language_of_work ?h . ?h rdf:type ontology:language }
[]
language
Clarification for simple ques.
Q945138
SYSTEM
Did you mean Bedknobs and Broomsticks ?
Q127367 Q18547944 Q945138
(Q127367,P364,c(Q34770)) (Q18547944,P364,c(Q34770)) (Q945138,P364,c(Q34770))
[ANSWER]
['Q127367', 'P364', {'concept': 'Q34770'}] ['Q18547944', 'P364', {'concept': 'Q34770'}] ['Q945138', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { resource:Q945138 property:P364 ?h . ?h rdf:type ontology:Q34770 }
The Lord of the Rings: The Fellowship of the Ring The Martian Bedknobs and Broomsticks
Did you mean Bedknobs and Broomsticks ?
Bedknobs and Broomsticks
['The Lord of the Rings: The Fellowship of the Ring', 'original language of work', {'concept': 'language'}] ['The Martian', 'original language of work', {'concept': 'language'}] ['Bedknobs and Broomsticks', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { resource:Bedknobs_and_Broomsticks property:original_language_of_work ?h . ?h rdf:type ontology:language }
[]
Simple Question (Coreferenced)
USER
Yes
(Q945138,P364,c(Q34770))
['Q945138', 'P364', {'concept': 'Q34770'}]
['Bedknobs and Broomsticks', 'original language of work', {'concept': 'language'}]
[]
Q1860
SYSTEM
English
Q1860
(Q945138,P364,c(Q34770))
action filter_type
action find
entity Q945138
relation P364
type Q34770
[ANSWER] was used originally for the creation of that work of art
['Q945138', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { resource:Q945138 property:P364 ?h . ?h rdf:type ontology:Q34770 }
English
English was used originally for the creation of that work of art
English
action filter_type
action find
entity Bedknobs and Broomsticks
relation original language of work
type language
['Bedknobs and Broomsticks', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { resource:Bedknobs_and_Broomsticks property:original_language_of_work ?h . ?h rdf:type ontology:language }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7560397
Q2031291
USER
And how about Somewhere in the Swamps of Jersey?
(Q7560397,P264,c(Q2031291))
action filter_type
action find
entity Q7560397
relation P264
type Q2031291
['Q7560397', 'P264', {'concept': 'Q2031291'}]
SELECT DISTINCT ?w WHERE { resource:Q7560397 property:P264 ?w . ?w rdf:type ontology:Q2031291 }
Somewhere in the Swamps of Jersey
action filter_type
action find
entity Somewhere in the Swamps of Jersey
relation record label
type release
['Somewhere in the Swamps of Jersey', 'record label', {'concept': 'release'}]
SELECT DISTINCT ?w WHERE { resource:Somewhere_in_the_Swamps_of_Jersey property:record_label ?w . ?w rdf:type ontology:release }
[]
release
Q251670
SYSTEM
Motown: A Journey Through Hitsville USA
Q251670
(Q7560397,P264,c(Q2031291))
action filter_type
action find
entity Q7560397
relation P264
type Q2031291
[ANSWER]
['Q7560397', 'P264', {'concept': 'Q2031291'}]
SELECT DISTINCT ?w WHERE { resource:Q7560397 property:P264 ?w . ?w rdf:type ontology:Q2031291 }
Motown: A Journey Through Hitsville USA
Motown: A Journey Through Hitsville USA
action filter_type
action find
entity Somewhere in the Swamps of Jersey
relation record label
type release
['Somewhere in the Swamps of Jersey', 'record label', {'concept': 'release'}]
SELECT DISTINCT ?w WHERE { resource:Somewhere_in_the_Swamps_of_Jersey property:record_label ?w . ?w rdf:type ontology:release }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P264
Q2031291
USER
How many releases have that release as their recording sponsor ?
(c(Q2031291),P264,Q251670)
action count
action filter_type
action find_reverse
entity Q251670
relation P264
type Q2031291
[{'concept': 'Q2031291'}, 'P264', 'Q251670']
SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { ?w property:P264 resource:Q251670 . ?w rdf:type ontology:Q2031291 }
action count
action filter_type
action find_reverse
entity Motown: A Journey Through Hitsville USA
relation record label
type release
[{'concept': 'release'}, 'record label', 'Motown: A Journey Through Hitsville USA']
SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { ?w property:record_label resource:Motown:_A_Journey_Through_Hitsville_USA . ?w rdf:type ontology:release }
[]
release
SYSTEM
1
Q7560397
(c(Q2031291),P264,Q251670)
action count
action filter_type
action find_reverse
entity Q251670
relation P264
type Q2031291
[ANSWER]
[{'concept': 'Q2031291'}, 'P264', 'Q251670']
SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { ?w property:P264 resource:Q251670 . ?w rdf:type ontology:Q2031291 }
Somewhere in the Swamps of Jersey
1
action count
action filter_type
action find_reverse
entity Motown: A Journey Through Hitsville USA
relation record label
type release
[{'concept': 'release'}, 'record label', 'Motown: A Journey Through Hitsville USA']
SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { ?w property:record_label resource:Motown:_A_Journey_Through_Hitsville_USA . ?w rdf:type ontology:release }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q945138
P272
Q375336
USER
Who was the producer of Bedknobs and Broomsticks ?
(Q945138,P272,c(Q375336))
action filter_type
action find
entity Q945138
relation P272
type Q375336
['Q945138', 'P272', {'concept': 'Q375336'}]
SELECT DISTINCT ?n WHERE { resource:Q945138 property:P272 ?n . ?n rdf:type ontology:Q375336 }
Bedknobs and Broomsticks
action filter_type
action find
entity Bedknobs and Broomsticks
relation production company
type film studio
['Bedknobs and Broomsticks', 'production company', {'concept': 'film studio'}]
SELECT DISTINCT ?n WHERE { resource:Bedknobs_and_Broomsticks property:production_company ?n . ?n rdf:type ontology:film_studio }
[]
film studio
Q1047410
SYSTEM
Walt Disney Animation Studios
Q1047410
(Q945138,P272,c(Q375336))
action filter_type
action find
entity Q945138
relation P272
type Q375336
The producer of Bedknobs and Broomsticks was the [ANSWER]
['Q945138', 'P272', {'concept': 'Q375336'}]
SELECT DISTINCT ?n WHERE { resource:Q945138 property:P272 ?n . ?n rdf:type ontology:Q375336 }
Walt Disney Animation Studios
The producer of Bedknobs and Broomsticks was the Walt Disney Animation Studios
Walt Disney Animation Studios
action filter_type
action find
entity Bedknobs and Broomsticks
relation production company
type film studio
['Bedknobs and Broomsticks', 'production company', {'concept': 'film studio'}]
SELECT DISTINCT ?n WHERE { resource:Bedknobs_and_Broomsticks property:production_company ?n . ?n rdf:type ontology:film_studio }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q945138
Q1269299
USER
And which business organization?
(Q945138,P272,c(Q1269299))
action filter_type
action find
entity Q945138
relation P272
type Q1269299
['Q945138', 'P272', {'concept': 'Q1269299'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q1269299 . resource:Q945138 property:P272 ?q }
Bedknobs and Broomsticks
action filter_type
action find
entity Bedknobs and Broomsticks
relation production company
type type of business entity
['Bedknobs and Broomsticks', 'production company', {'concept': 'type of business entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:type_of_business_entity . resource:Bedknobs_and_Broomsticks property:production_company ?q }
[]
type of business entity
Q7414
SYSTEM
The Walt Disney Company
Q7414
(Q945138,P272,c(Q1269299))
action filter_type
action find
entity Q945138
relation P272
type Q1269299
[ANSWER]
['Q945138', 'P272', {'concept': 'Q1269299'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q1269299 . resource:Q945138 property:P272 ?q }
The Walt Disney Company
The Walt Disney Company
action filter_type
action find
entity Bedknobs and Broomsticks
relation production company
type type of business entity
['Bedknobs and Broomsticks', 'production company', {'concept': 'type of business entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:type_of_business_entity . resource:Bedknobs_and_Broomsticks property:production_company ?q }
[]