Simple Question (Direct)
Simple Question
Q458235
P106
Q12737077
USER
What do Mikołaj Rej do for a living ?
(Q458235,P106,c(Q12737077))
action filter_type
action find
entity Q458235
relation P106
type Q12737077
['Q458235', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q458235 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
Mikołaj Rej
action filter_type
action find
entity Mikołaj Rej
relation occupation
type occupation
['Mikołaj Rej', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Mikołaj_Rej property:occupation ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q49757 Q36180
SYSTEM
poet, writer
Q49757 Q36180
(Q458235,P106,c(Q12737077))
action filter_type
action find
entity Q458235
relation P106
type Q12737077
Mikołaj Rej do [ANSWERS] for a living
['Q458235', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q458235 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
poet writer
Mikołaj Rej do poet and writer for a living
poet writer
action filter_type
action find
entity Mikołaj Rej
relation occupation
type occupation
['Mikołaj Rej', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Mikołaj_Rej property:occupation ?a . ?a rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q49757
P425
Q1792379
USER
Who has poet as the associated field of occupation ?
(Q49757,P425,c(Q1792379))
action filter_type
action find
entity Q49757
relation P425
type Q1792379
['Q49757', 'P425', {'concept': 'Q1792379'}]
SELECT DISTINCT ?w WHERE { resource:Q49757 property:P425 ?w . ?w rdf:type ontology:Q1792379 }
poet
action filter_type
action find
entity poet
relation field of this occupation
type art genre
['poet', 'field of this occupation', {'concept': 'art genre'}]
SELECT DISTINCT ?w WHERE { resource:poet property:field_of_this_occupation ?w . ?w rdf:type ontology:art_genre }
[]
art genre
Q482
SYSTEM
poetry
Q482
(Q49757,P425,c(Q1792379))
action filter_type
action find
entity Q49757
relation P425
type Q1792379
[ANSWER] has poet as the associated field of occupation
['Q49757', 'P425', {'concept': 'Q1792379'}]
SELECT DISTINCT ?w WHERE { resource:Q49757 property:P425 ?w . ?w rdf:type ontology:Q1792379 }
poetry
Poetry has poet as the associated field of occupation
poetry
action filter_type
action find
entity poet
relation field of this occupation
type art genre
['poet', 'field of this occupation', {'concept': 'art genre'}]
SELECT DISTINCT ?w WHERE { resource:poet property:field_of_this_occupation ?w . ?w rdf:type ontology:art_genre }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q864380
Q1792379
USER
And what about biographer?
(Q864380,P425,c(Q1792379))
action filter_type
action find
entity Q864380
relation P425
type Q1792379
['Q864380', 'P425', {'concept': 'Q1792379'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q1792379 . resource:Q864380 property:P425 ?x }
biographer
action filter_type
action find
entity biographer
relation field of this occupation
type art genre
['biographer', 'field of this occupation', {'concept': 'art genre'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:art_genre . resource:biographer property:field_of_this_occupation ?x }
[]
art genre
Q36279
SYSTEM
biography
Q36279
(Q864380,P425,c(Q1792379))
action filter_type
action find
entity Q864380
relation P425
type Q1792379
[ANSWER]
['Q864380', 'P425', {'concept': 'Q1792379'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q1792379 . resource:Q864380 property:P425 ?x }
biography
biography
action filter_type
action find
entity biographer
relation field of this occupation
type art genre
['biographer', 'field of this occupation', {'concept': 'art genre'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:art_genre . resource:biographer property:field_of_this_occupation ?x }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P136
Q15416 Q223393
USER
How many television programs or literary genres have that art genre as their type ?
(c(Q15416),P136,Q36279) (c(Q223393),P136,Q36279) (c(Q15416),P136,Q36279) (c(Q223393),P136,Q36279)
action count
action union
action filter_type
action find_reverse
entity Q36279
relation P136
type Q15416
action filter_type
action find_reverse
entity Q36279
relation P136
type Q223393
[{'concept': 'Q15416'}, 'P136', 'Q36279'] [{'concept': 'Q223393'}, 'P136', 'Q36279'] [{'concept': 'Q15416'}, 'P136', 'Q36279'] [{'concept': 'Q223393'}, 'P136', 'Q36279']
SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { { ?a property:P136 resource:Q36279 . ?a rdf:type ontology:Q15416 } UNION { ?a property:P136 resource:Q36279 . ?a rdf:type ontology:Q223393 } }
action count
action union
action filter_type
action find_reverse
entity biography
relation genre
type television program
action filter_type
action find_reverse
entity biography
relation genre
type literary genre
[{'concept': 'television program'}, 'genre', 'biography'] [{'concept': 'literary genre'}, 'genre', 'biography'] [{'concept': 'television program'}, 'genre', 'biography'] [{'concept': 'literary genre'}, 'genre', 'biography']
SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { { ?a property:genre resource:biography . ?a rdf:type ontology:television_program } UNION { ?a property:genre resource:biography . ?a rdf:type ontology:literary_genre } }
[]
television program literary genre
SYSTEM
17
Q818968 Q4066525 Q1989413 Q5273977 Q27485313 Q1962516 Q238597 Q6550446 Q7248274 Q19856929 Q7960354 Q7092513 Q1645493 Q3572222 Q3777174 Q17280304 Q21707064
(c(Q15416),P136,Q36279) (c(Q223393),P136,Q36279) (c(Q15416),P136,Q36279) (c(Q223393),P136,Q36279)
action count
action union
action filter_type
action find_reverse
entity Q36279
relation P136
type Q15416
action filter_type
action find_reverse
entity Q36279
relation P136
type Q223393
[ANSWER]
[{'concept': 'Q15416'}, 'P136', 'Q36279'] [{'concept': 'Q223393'}, 'P136', 'Q36279'] [{'concept': 'Q15416'}, 'P136', 'Q36279'] [{'concept': 'Q223393'}, 'P136', 'Q36279']
SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { { ?a property:P136 resource:Q36279 . ?a rdf:type ontology:Q15416 } UNION { ?a property:P136 resource:Q36279 . ?a rdf:type ontology:Q223393 } }
Hitler: The Rise of Evil Anna German Nieuw Nederlandsch Biografisch Woordenboek Dictionary of Welsh Biography A Pony Watch Serving in Silence: The Margarethe Cammermeyer Story Elvis Lincoln Profiles Memoir of George B. Wood, M.D., LL.D., Late President of the College Waissman One Canadian: The Political Memoirs of the Rt. Hon. John G. Diefenbaker Lives of the Most Excellent Painters, Sculptors, and Architects Yesterday's Children Growing Up Brady Carmen - Uma Biografia Take 3
17
action count
action union
action filter_type
action find_reverse
entity biography
relation genre
type television program
action filter_type
action find_reverse
entity biography
relation genre
type literary genre
[{'concept': 'television program'}, 'genre', 'biography'] [{'concept': 'literary genre'}, 'genre', 'biography'] [{'concept': 'television program'}, 'genre', 'biography'] [{'concept': 'literary genre'}, 'genre', 'biography']
SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { { ?a property:genre resource:biography . ?a rdf:type ontology:television_program } UNION { ?a property:genre resource:biography . ?a rdf:type ontology:literary_genre } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q458235 Q713782
P22
Q502895
USER
How many people have Mikołaj Rej or Otanes as a parent ?
(c(Q502895),P22,Q458235) (c(Q502895),P22,Q713782)
action count
action union
action filter_type
action find_reverse
entity Q458235
relation P22
type Q502895
action filter_type
action find_reverse
entity Q713782
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q458235'] [{'concept': 'Q502895'}, 'P22', 'Q713782']
SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { { ?j property:P22 resource:Q458235 . ?j rdf:type ontology:Q502895 } UNION { ?j property:P22 resource:Q713782 . ?j rdf:type ontology:Q502895 } }
Mikołaj Rej Otanes
action count
action union
action filter_type
action find_reverse
entity Mikołaj Rej
relation father
type common name
action filter_type
action find_reverse
entity Otanes
relation father
type common name
[{'concept': 'common name'}, 'father', 'Mikołaj Rej'] [{'concept': 'common name'}, 'father', 'Otanes']
SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { { ?j property:father resource:Mikołaj_Rej . ?j rdf:type ontology:common_name } UNION { ?j property:father resource:Otanes . ?j rdf:type ontology:common_name } }
[]
common name
SYSTEM
3
Q11749655 Q271376 Q7180014
(c(Q502895),P22,Q458235) (c(Q502895),P22,Q713782)
action count
action union
action filter_type
action find_reverse
entity Q458235
relation P22
type Q502895
action filter_type
action find_reverse
entity Q713782
relation P22
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P22', 'Q458235'] [{'concept': 'Q502895'}, 'P22', 'Q713782']
SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { { ?j property:P22 resource:Q458235 . ?j rdf:type ontology:Q502895 } UNION { ?j property:P22 resource:Q713782 . ?j rdf:type ontology:Q502895 } }
Krzysztof Rey Amestris Phaedymia
3
action count
action union
action filter_type
action find_reverse
entity Mikołaj Rej
relation father
type common name
action filter_type
action find_reverse
entity Otanes
relation father
type common name
[{'concept': 'common name'}, 'father', 'Mikołaj Rej'] [{'concept': 'common name'}, 'father', 'Otanes']
SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { { ?j property:father resource:Mikołaj_Rej . ?j rdf:type ontology:common_name } UNION { ?j property:father resource:Otanes . ?j rdf:type ontology:common_name } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q458235
P21 P22
Q502895
USER
Which people have Mikołaj Rej as a parent and are a male ?
AND((c(Q502895),P22,Q458235), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q458235
relation P22
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q458235'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?d WHERE { ?d property:P22 resource:Q458235 . ?d property:P21 resource:Q6581097 . ?d rdf:type ontology:Q502895 }
male Mikołaj Rej
action filter_type
action intersection
action find_reverse
entity Mikołaj Rej
relation father
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Mikołaj Rej'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?d WHERE { ?d property:father resource:Mikołaj_Rej . ?d property:gender resource:male . ?d rdf:type ontology:common_name }
[]
common name
Q11749655
SYSTEM
Krzysztof Rey
Q11749655
AND((c(Q502895),P22,Q458235), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q458235
relation P22
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] have Mikołaj Rej as a parent and are a male
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q458235'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?d WHERE { ?d property:P22 resource:Q458235 . ?d property:P21 resource:Q6581097 . ?d rdf:type ontology:Q502895 }
Krzysztof Rey
Krzysztof Rey have Mikołaj Rej as a parent and are a male
Krzysztof Rey
action filter_type
action intersection
action find_reverse
entity Mikołaj Rej
relation father
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Mikołaj Rej'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?d WHERE { ?d property:father resource:Mikołaj_Rej . ?d property:gender resource:male . ?d rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11749655
P40
Q502895
USER
Which person is a child of that one ?
(Q11749655,P40,c(Q502895))
action filter_type
action find
entity Q11749655
relation P40
type Q502895
['Q11749655', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q11749655 property:P40 ?s . ?s rdf:type ontology:Q502895 }
Krzysztof Rey
action filter_type
action find
entity Krzysztof Rey
relation child
type common name
['Krzysztof Rey', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Krzysztof_Rey property:child ?s . ?s rdf:type ontology:common_name }
[]
common name
Q973365
SYSTEM
Andrzej Rej
Q973365
(Q11749655,P40,c(Q502895))
action filter_type
action find
entity Q11749655
relation P40
type Q502895
[ANSWER] is a child of that one
['Q11749655', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q11749655 property:P40 ?s . ?s rdf:type ontology:Q502895 }
Andrzej Rej
Andrzej Rej is a child of that one
Andrzej Rej
action filter_type
action find
entity Krzysztof Rey
relation child
type common name
['Krzysztof Rey', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Krzysztof_Rey property:child ?s . ?s rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q21837038
P725
Q502895 Q95074
USER
Which fictional characters had their voice dubbing done by greater number of people than Keisuke Takahashi ?
(c(Q95074),P725,c(Q502895))
action greater
action find_tuple_counts
relation P725
type Q95074
type Q502895
action count
action filter_type
action find
entity Q21837038
relation P725
type Q95074
[{'concept': 'Q95074'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?f ) WHERE { ?t property:P725 ?r . ?r rdf:type ontology:Q502895 . ?t rdf:type ontology:Q95074 } GROUP BY ?t } . FILTER ( ?f > ?b ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { resource:Q21837038 property:P725 ?q . ?q rdf:type ontology:Q95074 } } }
Keisuke Takahashi
action greater
action find_tuple_counts
relation voice actor
type fictional character
type common name
action count
action filter_type
action find
entity Keisuke Takahashi
relation voice actor
type fictional character
[{'concept': 'fictional character'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?f ) WHERE { ?t property:voice_actor ?r . ?r rdf:type ontology:common_name . ?t rdf:type ontology:fictional_character } GROUP BY ?t } . FILTER ( ?f > ?b ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { resource:Keisuke_Takahashi property:voice_actor ?q . ?q rdf:type ontology:fictional_character } } }
[]
common name fictional character
Q12400 Q3471289 Q2340460
SYSTEM
Samus Aran, Samurai Goroh, Captain Falcon
Q21847058 Q11623287 Q3256697 Q21837397 Q21837021 Q21837027 Q3471289 Q12400 Q2340460
(c(Q95074),P725,c(Q502895))
action greater
action find_tuple_counts
relation P725
type Q95074
type Q502895
action count
action filter_type
action find
entity Q21837038
relation P725
type Q95074
[ANSWERS] had their voice dubbing done by greater number of people than Keisuke Takahashi
[{'concept': 'Q95074'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?f ) WHERE { ?t property:P725 ?r . ?r rdf:type ontology:Q502895 . ?t rdf:type ontology:Q95074 } GROUP BY ?t } . FILTER ( ?f > ?b ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { resource:Q21837038 property:P725 ?q . ?q rdf:type ontology:Q95074 } } }
Yūichi Tachibana Takumi Fujiwara Little Mac Takeshi Nakazato Bunta Fujiwara Ryōsuke Takahashi Samurai Goroh Samus Aran Captain Falcon
Samus Aran, Samurai Goroh and Captain Falcon had their voice dubbing done by greater number of people than Keisuke Takahashi
Samus Aran Samurai Goroh Captain Falcon
action greater
action find_tuple_counts
relation voice actor
type fictional character
type common name
action count
action filter_type
action find
entity Keisuke Takahashi
relation voice actor
type fictional character
[{'concept': 'fictional character'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?f ) WHERE { ?t property:voice_actor ?r . ?r rdf:type ontology:common_name . ?t rdf:type ontology:fictional_character } GROUP BY ?t } . FILTER ( ?f > ?b ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { resource:Keisuke_Takahashi property:voice_actor ?q . ?q rdf:type ontology:fictional_character } } }
[]