Simple Question (Direct)
Simple Question
Q2158673
P509
Q2057971
USER
What caused the death of Robert Russell ?
(Q2158673,P509,c(Q2057971))
action filter_type
action find
entity Q2158673
relation P509
type Q2057971
['Q2158673', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?x WHERE { resource:Q2158673 property:P509 ?x . ?x rdf:type ontology:Q2057971 }
Robert Russell
action filter_type
action find
entity Robert Russell
relation cause of death
type health problem
['Robert Russell', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?x WHERE { resource:Robert_Russell property:cause_of_death ?x . ?x rdf:type ontology:health_problem }
[]
health problem
Q12152
SYSTEM
myocardial infarction
Q12152
(Q2158673,P509,c(Q2057971))
action filter_type
action find
entity Q2158673
relation P509
type Q2057971
The [ANSWER] caused the death of Robert Russell
['Q2158673', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?x WHERE { resource:Q2158673 property:P509 ?x . ?x rdf:type ontology:Q2057971 }
myocardial infarction
The myocardial infarction caused the death of Robert Russell
myocardial infarction
action filter_type
action find
entity Robert Russell
relation cause of death
type health problem
['Robert Russell', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?x WHERE { resource:Robert_Russell property:cause_of_death ?x . ?x rdf:type ontology:health_problem }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2158673
P161
Q838948
USER
Which works of art have Robert Russell in their star cast ?
(c(Q838948),P161,Q2158673)
action filter_type
action find_reverse
entity Q2158673
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q2158673']
SELECT DISTINCT ?v WHERE { ?v property:P161 resource:Q2158673 . ?v rdf:type ontology:Q838948 }
Robert Russell
action filter_type
action find_reverse
entity Robert Russell
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Robert Russell']
SELECT DISTINCT ?v WHERE { ?v property:cast_member resource:Robert_Russell . ?v rdf:type ontology:work_of_art }
[]
work of art
Q1134147 Q1194311
SYSTEM
The Whisperers, Witchfinder General
Q1134147 Q1194311
(c(Q838948),P161,Q2158673)
action filter_type
action find_reverse
entity Q2158673
relation P161
type Q838948
[ANSWERS] have Robert Russell in their star cast
[{'concept': 'Q838948'}, 'P161', 'Q2158673']
SELECT DISTINCT ?v WHERE { ?v property:P161 resource:Q2158673 . ?v rdf:type ontology:Q838948 }
The Whisperers Witchfinder General
The Whisperers and Witchfinder General have Robert Russell in their star cast
The Whisperers Witchfinder General
action filter_type
action find_reverse
entity Robert Russell
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Robert Russell']
SELECT DISTINCT ?v WHERE { ?v property:cast_member resource:Robert_Russell . ?v rdf:type ontology:work_of_art }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1134147
P57
Q502895
USER
Who directed that work of art ?
(Q1134147,P57,c(Q502895))
action filter_type
action find
entity Q1134147
relation P57
type Q502895
['Q1134147', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q1134147 property:P57 ?y . ?y rdf:type ontology:Q502895 }
The Whisperers
action filter_type
action find
entity The Whisperers
relation director
type common name
['The Whisperers', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:The_Whisperers property:director ?y . ?y rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q1194311
SYSTEM
Did you mean Witchfinder General ?
Q1134147 Q1194311
(Q1134147,P57,c(Q502895)) (Q1194311,P57,c(Q502895))
[ANSWER]
['Q1134147', 'P57', {'concept': 'Q502895'}] ['Q1194311', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q1134147 property:P57 ?y . ?y rdf:type ontology:Q502895 }
The Whisperers Witchfinder General
Did you mean Witchfinder General ?
Witchfinder General
['The Whisperers', 'director', {'concept': 'common name'}] ['Witchfinder General', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:The_Whisperers property:director ?y . ?y rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant The Whisperers. Could you tell me the answer for that?
(Q1134147,P57,c(Q502895))
Q1134147
['Q1134147', 'P57', {'concept': 'Q502895'}]
['The Whisperers', 'director', {'concept': 'common name'}]
[]
Q850385
SYSTEM
Bryan Forbes
Q850385
(Q1134147,P57,c(Q502895))
action filter_type
action find
entity Q1134147
relation P57
type Q502895
[ANSWER] directed that work of art
['Q1134147', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q1134147 property:P57 ?y . ?y rdf:type ontology:Q502895 }
Bryan Forbes
Bryan Forbes directed that work of art
Bryan Forbes
action filter_type
action find
entity The Whisperers
relation director
type common name
['The Whisperers', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:The_Whisperers property:director ?y . ?y rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q838948 Q2342494 Q502895
USER
Which works of art are approximately 1 collectables or people a part of ?
(c(Q2342494)|c(Q502895),P361,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q2342494
action find_reverse_tuple_counts
relation P361
type Q838948
type Q502895
value 1
[[{'concept': 'Q2342494'}, {'concept': 'Q502895'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) ?r WHERE { { ?j property:P361 ?r . ?r rdf:type ontology:Q838948 . ?j rdf:type ontology:Q2342494 } UNION { ?j property:P361 ?r . ?r rdf:type ontology:Q838948 . ?j rdf:type ontology:Q502895 } } GROUP BY ?r } . FILTER ( ?n = 1 ) }
action approx
action union
action find_reverse_tuple_counts
relation part of
type work of art
type collectable
action find_reverse_tuple_counts
relation part of
type work of art
type common name
value 1
[[{'concept': 'collectable'}, {'concept': 'common name'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) ?r WHERE { { ?j property:part_of ?r . ?r rdf:type ontology:work_of_art . ?j rdf:type ontology:collectable } UNION { ?j property:part_of ?r . ?r rdf:type ontology:work_of_art . ?j rdf:type ontology:common_name } } GROUP BY ?r } . FILTER ( ?n = 1 ) }
[]
work of art collectable common name
Q213053 Q10512738 Q1762957
SYSTEM
Superman, Göta kanal eller Vem drog ur proppen?, Release the Prisoners to Spring
Q1762957 Q22260775 Q10550583 Q6519361 Q2905386 Q213053 Q283134 Q1297233 Q10512738
(c(Q2342494)|c(Q502895),P361,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q2342494
action find_reverse_tuple_counts
relation P361
type Q838948
type Q502895
value 1
[ANSWERS]
[[{'concept': 'Q2342494'}, {'concept': 'Q502895'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) ?r WHERE { { ?j property:P361 ?r . ?r rdf:type ontology:Q838948 . ?j rdf:type ontology:Q2342494 } UNION { ?j property:P361 ?r . ?r rdf:type ontology:Q838948 . ?j rdf:type ontology:Q502895 } } GROUP BY ?r } . FILTER ( ?n = 1 ) }
Release the Prisoners to Spring Sonar Kella Kurt Olsson – filmen om mitt liv som mig själv Leif Black Jack Superman Supergirl Ferdinand the Bull Göta kanal eller Vem drog ur proppen?
Superman, Göta kanal eller Vem drog ur proppen and Release the Prisoners to Spring are approximately 1 collectables or people a part of
Superman Göta kanal eller Vem drog ur proppen? Release the Prisoners to Spring
action approx
action union
action find_reverse_tuple_counts
relation part of
type work of art
type collectable
action find_reverse_tuple_counts
relation part of
type work of art
type common name
value 1
[[{'concept': 'collectable'}, {'concept': 'common name'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) ?r WHERE { { ?j property:part_of ?r . ?r rdf:type ontology:work_of_art . ?j rdf:type ontology:collectable } UNION { ?j property:part_of ?r . ?r rdf:type ontology:work_of_art . ?j rdf:type ontology:common_name } } GROUP BY ?r } . FILTER ( ?n = 1 ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P361
Q502895
USER
How many people are a component of that work of art ?
(c(Q502895),P361,Q10512738)
[{'concept': 'Q502895'}, 'P361', 'Q10512738']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P361 resource:Q10512738 . ?z rdf:type ontology:Q502895 }
[{'concept': 'common name'}, 'part of', 'Göta kanal eller Vem drog ur proppen?']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:part_of resource:Göta_kanal_eller_Vem_drog_ur_proppen? . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q10512738
SYSTEM
Did you mean Göta kanal eller Vem drog ur proppen? ?
(c(Q502895),P361,Q213053) (c(Q502895),P361,Q10512738) (c(Q502895),P361,Q1762957)
[ANSWER]
[{'concept': 'Q502895'}, 'P361', 'Q213053'] [{'concept': 'Q502895'}, 'P361', 'Q10512738'] [{'concept': 'Q502895'}, 'P361', 'Q1762957']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P361 resource:Q10512738 . ?z rdf:type ontology:Q502895 }
Did you mean Göta kanal eller Vem drog ur proppen? ?
Göta kanal eller Vem drog ur proppen?
[{'concept': 'common name'}, 'part of', 'Superman'] [{'concept': 'common name'}, 'part of', 'Göta kanal eller Vem drog ur proppen?'] [{'concept': 'common name'}, 'part of', 'Release the Prisoners to Spring']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:part_of resource:Göta_kanal_eller_Vem_drog_ur_proppen? . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q502895),P361,Q10512738)
[{'concept': 'Q502895'}, 'P361', 'Q10512738']
[{'concept': 'common name'}, 'part of', 'Göta kanal eller Vem drog ur proppen?']
[]
SYSTEM
1
Q6209151
(c(Q502895),P361,Q10512738)
[ANSWER]
[{'concept': 'Q502895'}, 'P361', 'Q10512738']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P361 resource:Q10512738 . ?z rdf:type ontology:Q502895 }
Johan Thorén
1
[{'concept': 'common name'}, 'part of', 'Göta kanal eller Vem drog ur proppen?']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:part_of resource:Göta_kanal_eller_Vem_drog_ur_proppen? . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P689
Q82799 Q25570959 Q2057971
USER
Which health problems can afflict max number of names or animal structures ?
(c(Q2057971),P689,c(Q82799)|c(Q25570959))
action argmax
action union
action find_tuple_counts
relation P689
type Q2057971
type Q82799
action find_tuple_counts
relation P689
type Q2057971
type Q25570959
[{'concept': 'Q2057971'}, 'P689', [{'concept': 'Q82799'}, {'concept': 'Q25570959'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?q ) { SELECT DISTINCT ?w ( COUNT ( ?f ) AS ?a ) WHERE { { ?w property:P689 ?f . ?w rdf:type ontology:Q2057971 . ?f rdf:type ontology:Q82799 } UNION { ?w property:P689 ?f . ?w rdf:type ontology:Q2057971 . ?f rdf:type ontology:Q25570959 } } GROUP BY ?w } } . { SELECT DISTINCT ?n ( COUNT ( ?y ) AS ?r ) WHERE { { ?n rdf:type ontology:Q2057971 . ?y rdf:type ontology:Q82799 . ?n property:P689 ?y } UNION { ?y rdf:type ontology:Q25570959 . ?n rdf:type ontology:Q2057971 . ?n property:P689 ?y } } GROUP BY ?n } . FILTER ( ?r = ?q ) }
action argmax
action union
action find_tuple_counts
relation afflicts
type health problem
type name
action find_tuple_counts
relation afflicts
type health problem
type animal structure
[{'concept': 'health problem'}, 'afflicts', [{'concept': 'name'}, {'concept': 'animal structure'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?q ) { SELECT DISTINCT ?w ( COUNT ( ?f ) AS ?a ) WHERE { { ?w property:afflicts ?f . ?w rdf:type ontology:health_problem . ?f rdf:type ontology:name } UNION { ?w property:afflicts ?f . ?w rdf:type ontology:health_problem . ?f rdf:type ontology:animal_structure } } GROUP BY ?w } } . { SELECT DISTINCT ?n ( COUNT ( ?y ) AS ?r ) WHERE { { ?n rdf:type ontology:health_problem . ?y rdf:type ontology:name . ?n property:afflicts ?y } UNION { ?y rdf:type ontology:animal_structure . ?n rdf:type ontology:health_problem . ?n property:afflicts ?y } } GROUP BY ?n } . FILTER ( ?r = ?q ) }
[]
name animal structure health problem
Q12214 Q154869 Q504775
SYSTEM
smallpox, hepatitis C, urinary bladder cancer
Q1362721 Q154869 Q3055380 Q147778 Q857667 Q48143 Q131742 Q6853 Q697117 Q3392853 Q929737 Q5518905 Q244438 Q7578540 Q949302 Q190805 Q18554589 Q504775 Q1030785 Q1628473 Q1545572 Q21128620 Q133087 Q12214 Q476921 Q4941552 Q5325633
(c(Q2057971),P689,c(Q82799)|c(Q25570959))
action argmax
action union
action find_tuple_counts
relation P689
type Q2057971
type Q82799
action find_tuple_counts
relation P689
type Q2057971
type Q25570959
[ANSWERS] can afflict max number of names or animal structures
[{'concept': 'Q2057971'}, 'P689', [{'concept': 'Q82799'}, {'concept': 'Q25570959'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?q ) { SELECT DISTINCT ?w ( COUNT ( ?f ) AS ?a ) WHERE { { ?w property:P689 ?f . ?w rdf:type ontology:Q2057971 . ?f rdf:type ontology:Q82799 } UNION { ?w property:P689 ?f . ?w rdf:type ontology:Q2057971 . ?f rdf:type ontology:Q25570959 } } GROUP BY ?w } } . { SELECT DISTINCT ?n ( COUNT ( ?y ) AS ?r ) WHERE { { ?n rdf:type ontology:Q2057971 . ?y rdf:type ontology:Q82799 . ?n property:P689 ?y } UNION { ?y rdf:type ontology:Q25570959 . ?n rdf:type ontology:Q2057971 . ?n property:P689 ?y } } GROUP BY ?n } . FILTER ( ?r = ?q ) }
tuberous sclerosis hepatitis C intestinal disease liver cirrhosis pulmonary edema meningitis hepatitis hepatitis B Spinal disc herniation lung disease liver disease gallbladder disease prosopagnosia splenic disease skin disease heart disease hepatic infarction urinary bladder cancer demodicosis corneal ulcer splenic infarction spleen injury gout smallpox kidney failure bone disease auditory system disease
Smallpox, hepatitis C and urinary bladder cancer can afflict max number of names or animal structures
smallpox hepatitis C urinary bladder cancer
action argmax
action union
action find_tuple_counts
relation afflicts
type health problem
type name
action find_tuple_counts
relation afflicts
type health problem
type animal structure
[{'concept': 'health problem'}, 'afflicts', [{'concept': 'name'}, {'concept': 'animal structure'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?q ) { SELECT DISTINCT ?w ( COUNT ( ?f ) AS ?a ) WHERE { { ?w property:afflicts ?f . ?w rdf:type ontology:health_problem . ?f rdf:type ontology:name } UNION { ?w property:afflicts ?f . ?w rdf:type ontology:health_problem . ?f rdf:type ontology:animal_structure } } GROUP BY ?w } } . { SELECT DISTINCT ?n ( COUNT ( ?y ) AS ?r ) WHERE { { ?n rdf:type ontology:health_problem . ?y rdf:type ontology:name . ?n property:afflicts ?y } UNION { ?y rdf:type ontology:animal_structure . ?n rdf:type ontology:health_problem . ?n property:afflicts ?y } } GROUP BY ?n } . FILTER ( ?r = ?q ) }
[]