Simple Question (Direct)
Simple Question
Q471433
P641
Q31629
USER
Which type of sport did Hans-Peter Gies participate in ?
(Q471433,P641,c(Q31629))
action filter_type
action find
entity Q471433
relation P641
type Q31629
['Q471433', 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ?p WHERE { resource:Q471433 property:P641 ?p . ?p rdf:type ontology:Q31629 }
Hans-Peter Gies
action filter_type
action find
entity Hans-Peter Gies
relation sport
type type of sport
['Hans-Peter Gies', 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ?p WHERE { resource:Hans-Peter_Gies property:sport ?p . ?p rdf:type ontology:type_of_sport }
[]
type of sport
Q542
SYSTEM
athletics
Q542
(Q471433,P641,c(Q31629))
action filter_type
action find
entity Q471433
relation P641
type Q31629
Hans-Peter Gies participated in the [ANSWER]
['Q471433', 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ?p WHERE { resource:Q471433 property:P641 ?p . ?p rdf:type ontology:Q31629 }
athletics
Hans-Peter Gies participated in the athletics
athletics
action filter_type
action find
entity Hans-Peter Gies
relation sport
type type of sport
['Hans-Peter Gies', 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ?p WHERE { resource:Hans-Peter_Gies property:sport ?p . ?p rdf:type ontology:type_of_sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q542
P425
Q151885
USER
Which concept does that type of sport belong to ?
(c(Q151885),P425,Q542)
action filter_type
action find_reverse
entity Q542
relation P425
type Q151885
[{'concept': 'Q151885'}, 'P425', 'Q542']
SELECT DISTINCT ?u WHERE { ?u property:P425 resource:Q542 . ?u rdf:type ontology:Q151885 }
athletics
action filter_type
action find_reverse
entity athletics
relation field of this occupation
type concept
[{'concept': 'concept'}, 'field of this occupation', 'athletics']
SELECT DISTINCT ?u WHERE { ?u property:field_of_this_occupation resource:athletics . ?u rdf:type ontology:concept }
[]
concept
Q11513337
SYSTEM
athletics competitor
Q11513337
(c(Q151885),P425,Q542)
action filter_type
action find_reverse
entity Q542
relation P425
type Q151885
That type of sport belongs to [ANSWER]
[{'concept': 'Q151885'}, 'P425', 'Q542']
SELECT DISTINCT ?u WHERE { ?u property:P425 resource:Q542 . ?u rdf:type ontology:Q151885 }
athletics competitor
That type of sport belongs to athletics competitor
athletics competitor
action filter_type
action find_reverse
entity athletics
relation field of this occupation
type concept
[{'concept': 'concept'}, 'field of this occupation', 'athletics']
SELECT DISTINCT ?u WHERE { ?u property:field_of_this_occupation resource:athletics . ?u rdf:type ontology:concept }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P144
Q502895 Q11424 Q1001378
USER
Which people are exactly 1 films and cinematic techniques based on ?
(c(Q11424)|c(Q1001378),P144,c(Q502895))
action equal
action union
action find_reverse_tuple_counts
relation P144
type Q502895
type Q11424
action find_reverse_tuple_counts
relation P144
type Q502895
type Q1001378
value 1
[[{'concept': 'Q11424'}, {'concept': 'Q1001378'}], 'P144', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { FILTER ( ?b = 1 ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) ?v WHERE { VALUES ( ?g ) { ( ontology:Q11424 ) ( ontology:Q1001378 ) } . ?e rdf:type ?g } GROUP BY ?v } }
action equal
action union
action find_reverse_tuple_counts
relation based on
type common name
type film
action find_reverse_tuple_counts
relation based on
type common name
type cinematic technique
value 1
[[{'concept': 'film'}, {'concept': 'cinematic technique'}], 'based on', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { FILTER ( ?b = 1 ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) ?v WHERE { VALUES ( ?g ) { ( ontology:film ) ( ontology:cinematic_technique ) } . ?e rdf:type ?g } GROUP BY ?v } }
[]
common name film cinematic technique
Q150471 Q3079968 Q8011009
SYSTEM
E. T. A. Hoffmann, Ted Key, William Hatfield
Q3079968 Q8011009 Q150471 Q7668479
(c(Q11424)|c(Q1001378),P144,c(Q502895))
action equal
action union
action find_reverse_tuple_counts
relation P144
type Q502895
type Q11424
action find_reverse_tuple_counts
relation P144
type Q502895
type Q1001378
value 1
[ANSWERS] are exactly 1 films and cinematic techniques based on
[[{'concept': 'Q11424'}, {'concept': 'Q1001378'}], 'P144', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { FILTER ( ?b = 1 ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) ?v WHERE { VALUES ( ?g ) { ( ontology:Q11424 ) ( ontology:Q1001378 ) } . ?e rdf:type ?g } GROUP BY ?v } }
Ted Key William Hatfield E. T. A. Hoffmann T. Lewis
E. T. A. Hoffmann, Ted Key and William Hatfield are exactly 1 films and cinematic techniques based on
E. T. A. Hoffmann Ted Key William Hatfield
action equal
action union
action find_reverse_tuple_counts
relation based on
type common name
type film
action find_reverse_tuple_counts
relation based on
type common name
type cinematic technique
value 1
[[{'concept': 'film'}, {'concept': 'cinematic technique'}], 'based on', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { FILTER ( ?b = 1 ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) ?v WHERE { VALUES ( ?g ) { ( ontology:film ) ( ontology:cinematic_technique ) } . ?e rdf:type ?g } GROUP BY ?v } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q150471 Q3079968 Q8011009
P144
Q11424
USER
Which films are adapted from those people ?
(c(Q11424),P144,Q150471) (c(Q11424),P144,Q3079968) (c(Q11424),P144,Q8011009)
action filter_type
action find_reverse
entity prev_answer
relation P144
type Q11424
[{'concept': 'Q11424'}, 'P144', 'Q150471'] [{'concept': 'Q11424'}, 'P144', 'Q3079968'] [{'concept': 'Q11424'}, 'P144', 'Q8011009']
SELECT DISTINCT ?z WHERE { VALUES ( ?f ) { ( resource:Q3079968 ) ( resource:Q8011009 ) ( resource:Q150471 ) } . ?z rdf:type ontology:Q11424 . ?z property:P144 ?f }
E. T. A. Hoffmann Ted Key William Hatfield
action filter_type
action find_reverse
entity prev_answer
relation based on
type film
[{'concept': 'film'}, 'based on', 'E. T. A. Hoffmann'] [{'concept': 'film'}, 'based on', 'Ted Key'] [{'concept': 'film'}, 'based on', 'William Hatfield']
SELECT DISTINCT ?z WHERE { VALUES ( ?f ) { ( resource:Ted_Key ) ( resource:William_Hatfield ) ( resource:E._T._A._Hoffmann ) } . ?z rdf:type ontology:film . ?z property:based_on ?f }
[]
film
Q45847 Q6929072 Q7492453
SYSTEM
The Nutcracker Prince, Mr. Peabody & Sherman, Sheepmates
Q45847 Q6929072 Q7492453
(c(Q11424),P144,Q150471) (c(Q11424),P144,Q3079968) (c(Q11424),P144,Q8011009)
action filter_type
action find_reverse
entity prev_answer
relation P144
type Q11424
[ANSWERS] are adapted from those people
[{'concept': 'Q11424'}, 'P144', 'Q150471'] [{'concept': 'Q11424'}, 'P144', 'Q3079968'] [{'concept': 'Q11424'}, 'P144', 'Q8011009']
SELECT DISTINCT ?z WHERE { VALUES ( ?f ) { ( resource:Q3079968 ) ( resource:Q8011009 ) ( resource:Q150471 ) } . ?z rdf:type ontology:Q11424 . ?z property:P144 ?f }
The Nutcracker Prince Mr. Peabody & Sherman Sheepmates
The Nutcracker Prince, Mr. Peabody & Sherman and Sheepmates are adapted from those people
The Nutcracker Prince Mr. Peabody & Sherman Sheepmates
action filter_type
action find_reverse
entity prev_answer
relation based on
type film
[{'concept': 'film'}, 'based on', 'E. T. A. Hoffmann'] [{'concept': 'film'}, 'based on', 'Ted Key'] [{'concept': 'film'}, 'based on', 'William Hatfield']
SELECT DISTINCT ?z WHERE { VALUES ( ?f ) { ( resource:Ted_Key ) ( resource:William_Hatfield ) ( resource:E._T._A._Hoffmann ) } . ?z rdf:type ontology:film . ?z property:based_on ?f }
[]
Clarification
Simple Question|Single Entity|Indirect
Q6929072
P364
Q34770
USER
Which language was used originally for the creation of that film ?
(Q6929072,P364,c(Q34770))
action filter_type
action find
entity Q6929072
relation P364
type Q34770
['Q6929072', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?c WHERE { resource:Q6929072 property:P364 ?c . ?c rdf:type ontology:Q34770 }
Mr. Peabody & Sherman
action filter_type
action find
entity Mr. Peabody & Sherman
relation original language of work
type language
['Mr. Peabody & Sherman', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?c WHERE { resource:Mr._Peabody_&_Sherman property:original_language_of_work ?c . ?c rdf:type ontology:language }
[]
language
Clarification for simple ques.
Q45847
SYSTEM
Did you mean The Nutcracker Prince ?
Q45847 Q6929072 Q7492453
(Q45847,P364,c(Q34770)) (Q6929072,P364,c(Q34770)) (Q7492453,P364,c(Q34770))
[ANSWER]
['Q45847', 'P364', {'concept': 'Q34770'}] ['Q6929072', 'P364', {'concept': 'Q34770'}] ['Q7492453', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?c WHERE { resource:Q6929072 property:P364 ?c . ?c rdf:type ontology:Q34770 }
The Nutcracker Prince Mr. Peabody & Sherman Sheepmates
Did you mean The Nutcracker Prince ?
The Nutcracker Prince
['The Nutcracker Prince', 'original language of work', {'concept': 'language'}] ['Mr. Peabody & Sherman', 'original language of work', {'concept': 'language'}] ['Sheepmates', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?c WHERE { resource:Mr._Peabody_&_Sherman property:original_language_of_work ?c . ?c rdf:type ontology:language }
[]
Simple Question (Coreferenced)
USER
No, I meant Mr. Peabody & Sherman. Could you tell me the answer for that?
(Q6929072,P364,c(Q34770))
Q6929072
['Q6929072', 'P364', {'concept': 'Q34770'}]
['Mr. Peabody & Sherman', 'original language of work', {'concept': 'language'}]
[]
Q1860
SYSTEM
English
Q1860
(Q6929072,P364,c(Q34770))
action filter_type
action find
entity Q6929072
relation P364
type Q34770
[ANSWER] was used originally for the creation of that film
['Q6929072', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?c WHERE { resource:Q6929072 property:P364 ?c . ?c rdf:type ontology:Q34770 }
English
English was used originally for the creation of that film
English
action filter_type
action find
entity Mr. Peabody & Sherman
relation original language of work
type language
['Mr. Peabody & Sherman', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?c WHERE { resource:Mr._Peabody_&_Sherman property:original_language_of_work ?c . ?c rdf:type ontology:language }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1860 Q1346342
P361
Q5962346
USER
Is that language a component of Anglic languages ?
(Q1860,P361,Q1346342)
action is_in
entity Q1346342
action find
entity Q1860
relation P361
['Q1860', 'P361', 'Q1346342']
ASK WHERE { resource:Q1860 property:P361 resource:Q1346342 }
English Anglic languages
action is_in
entity Anglic languages
action find
entity English
relation part of
['English', 'part of', 'Anglic languages']
ASK WHERE { resource:English property:part_of resource:Anglic_languages }
[]
classification scheme
SYSTEM
YES
(Q1860,P361,Q1346342)
action is_in
entity Q1346342
action find
entity Q1860
relation P361
[ANSWER]
['Q1860', 'P361', 'Q1346342']
ASK WHERE { resource:Q1860 property:P361 resource:Q1346342 }
Yes
action is_in
entity Anglic languages
action find
entity English
relation part of
['English', 'part of', 'Anglic languages']
ASK WHERE { resource:English property:part_of resource:Anglic_languages }
[]