Simple Question (Direct)
Simple Question
Q20897762
P22
Q502895
USER
Which person was the father of Ioannis Tsouderos ?
(Q20897762,P22,c(Q502895))
action filter_type
action find
entity Q20897762
relation P22
type Q502895
['Q20897762', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q20897762 property:P22 ?w . ?w rdf:type ontology:Q502895 }
Ioannis Tsouderos
action filter_type
action find
entity Ioannis Tsouderos
relation father
type common name
['Ioannis Tsouderos', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Ioannis_Tsouderos property:father ?w . ?w rdf:type ontology:common_name }
[]
common name
Q731193
SYSTEM
Emmanouil Tsouderos
Q731193
(Q20897762,P22,c(Q502895))
action filter_type
action find
entity Q20897762
relation P22
type Q502895
[ANSWER] was the father of Ioannis Tsouderos
['Q20897762', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q20897762 property:P22 ?w . ?w rdf:type ontology:Q502895 }
Emmanouil Tsouderos
Emmanouil Tsouderos was the father of Ioannis Tsouderos
Emmanouil Tsouderos
action filter_type
action find
entity Ioannis Tsouderos
relation father
type common name
['Ioannis Tsouderos', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Ioannis_Tsouderos property:father ?w . ?w rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q731193
P40
Q502895
USER
Which person has that one as an offspring ?
(c(Q502895),P40,Q731193)
action filter_type
action find_reverse
entity Q731193
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q731193']
SELECT DISTINCT ?b WHERE { ?b property:P40 resource:Q731193 . ?b rdf:type ontology:Q502895 }
Emmanouil Tsouderos
action filter_type
action find_reverse
entity Emmanouil Tsouderos
relation child
type common name
[{'concept': 'common name'}, 'child', 'Emmanouil Tsouderos']
SELECT DISTINCT ?b WHERE { ?b property:child resource:Emmanouil_Tsouderos . ?b rdf:type ontology:common_name }
[]
common name
Q21007334
SYSTEM
Ioannis A. Tsouderos
Q21007334
(c(Q502895),P40,Q731193)
action filter_type
action find_reverse
entity Q731193
relation P40
type Q502895
[ANSWER] has that one as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q731193']
SELECT DISTINCT ?b WHERE { ?b property:P40 resource:Q731193 . ?b rdf:type ontology:Q502895 }
Ioannis A. Tsouderos
Ioannis A. Tsouderos has that one as an offspring
Ioannis A. Tsouderos
action filter_type
action find_reverse
entity Emmanouil Tsouderos
relation child
type common name
[{'concept': 'common name'}, 'child', 'Emmanouil Tsouderos']
SELECT DISTINCT ?b WHERE { ?b property:child resource:Emmanouil_Tsouderos . ?b rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q12739035
P725
Q502895 Q15619164
USER
How many abstract beings did approximately the same number of people dub for as Rainbow Dash ?
(c(Q15619164),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q15619164
type Q502895
action count
action filter_type
action find
entity Q12739035
relation P725
type Q15619164
[{'concept': 'Q15619164'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?j ) AS ?a ) WHERE { ?j rdf:type ontology:Q502895 . ?q rdf:type ontology:Q15619164 . ?q property:P725 ?j } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) WHERE { resource:Q12739035 property:P725 ?y . ?y rdf:type ontology:Q15619164 } } . FILTER ( ?a = ?k ) }
Rainbow Dash
action count
action approx
action find_tuple_counts
relation voice actor
type abstract being
type common name
action count
action filter_type
action find
entity Rainbow Dash
relation voice actor
type abstract being
[{'concept': 'abstract being'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?j ) AS ?a ) WHERE { ?j rdf:type ontology:common_name . ?q rdf:type ontology:abstract_being . ?q property:voice_actor ?j } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) WHERE { resource:Rainbow_Dash property:voice_actor ?y . ?y rdf:type ontology:abstract_being } } . FILTER ( ?a = ?k ) }
[]
common name abstract being
SYSTEM
42
Q21009638 Q15055569 Q14432243 Q15725453 Q15141427 Q3222756 Q21036253 Q12739035 Q9300505 Q3152983 Q10343913 Q2270749 Q4023191 Q819519 Q15520173 Q977511 Q17628767 Q15710705 Q3565718 Q3631585 Q16040855 Q11297446 Q282514 Q3858633 Q844697 Q2291154 Q3482136 Q8212419 Q14432283 Q2151996 Q15730337 Q2663645 Q3479120 Q2566378 Q6076547 Q3966728 Q4810757 Q4874693 Q819851 Q15710460 Q3222748 Q14429586
(c(Q15619164),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q15619164
type Q502895
action count
action filter_type
action find
entity Q12739035
relation P725
type Q15619164
[ANSWER]
[{'concept': 'Q15619164'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?j ) AS ?a ) WHERE { ?j rdf:type ontology:Q502895 . ?q rdf:type ontology:Q15619164 . ?q property:P725 ?j } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) WHERE { resource:Q12739035 property:P725 ?y . ?y rdf:type ontology:Q15619164 } } . FILTER ( ?a = ?k ) }
Beltino Toad Jeremiah Gottwald Bill Grey Queen Chrysalis Pinkie Pie Pigma Dengar Tricky Rainbow Dash Rarity Integra Hellsing Palutena Pit Yui Hirasawa Gul'dan Ui Hirasawa Shizuka Minamoto Diablo Discord Walter C. Dornez Azusa Nakano Pico Kyūbey Alucard Mio Akiyama Shinichi Kudo Kratos Alexander Anderson Leon Powalski Katt Monroe Constance Harm Babs Seed Krystal Seras Victoria Garrosh Hellscream Pip Bernadotte Spike Tyrael Bayonetta Mannoroth Gilda, the Griffin James McCloud Panther Caroso
42
action count
action approx
action find_tuple_counts
relation voice actor
type abstract being
type common name
action count
action filter_type
action find
entity Rainbow Dash
relation voice actor
type abstract being
[{'concept': 'abstract being'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?j ) AS ?a ) WHERE { ?j rdf:type ontology:common_name . ?q rdf:type ontology:abstract_being . ?q property:voice_actor ?j } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) WHERE { resource:Rainbow_Dash property:voice_actor ?y . ?y rdf:type ontology:abstract_being } } . FILTER ( ?a = ?k ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments do around 2344 people know to play ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2344
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?h ) AS ?f ) WHERE { ?h property:P1303 ?k . ?k rdf:type ontology:Q34379 . ?h rdf:type ontology:Q502895 } GROUP BY ?k } . FILTER ( ?f = 2344 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2344
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?h ) AS ?f ) WHERE { ?h property:instrument ?k . ?k rdf:type ontology:musical_instrument . ?h rdf:type ontology:common_name } GROUP BY ?k } . FILTER ( ?f = 2344 ) }
[]
musical instrument common name
SYSTEM
4
Q46185 Q8338 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2344
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?h ) AS ?f ) WHERE { ?h property:P1303 ?k . ?k rdf:type ontology:Q34379 . ?h rdf:type ontology:Q502895 } GROUP BY ?k } . FILTER ( ?f = 2344 ) }
bass guitar trumpet organ drum kit
4
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2344
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?h ) AS ?f ) WHERE { ?h property:instrument ?k . ?k rdf:type ontology:musical_instrument . ?h rdf:type ontology:common_name } GROUP BY ?k } . FILTER ( ?f = 2344 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20897762
P102
Q7210356
USER
Which party is Ioannis Tsouderos affiliated with ?
(Q20897762,P102,c(Q7210356))
action filter_type
action find
entity Q20897762
relation P102
type Q7210356
['Q20897762', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?q WHERE { resource:Q20897762 property:P102 ?q . ?q rdf:type ontology:Q7210356 }
Ioannis Tsouderos
action filter_type
action find
entity Ioannis Tsouderos
relation member of political party
type political organization
['Ioannis Tsouderos', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?q WHERE { resource:Ioannis_Tsouderos property:member_of_political_party ?q . ?q rdf:type ontology:political_organization }
[]
political organization
Q223153
SYSTEM
New Democracy
Q223153
(Q20897762,P102,c(Q7210356))
action filter_type
action find
entity Q20897762
relation P102
type Q7210356
Ioannis Tsouderos is affiliated with [ANSWER]
['Q20897762', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?q WHERE { resource:Q20897762 property:P102 ?q . ?q rdf:type ontology:Q7210356 }
New Democracy
Ioannis Tsouderos is affiliated with New Democracy
New Democracy
action filter_type
action find
entity Ioannis Tsouderos
relation member of political party
type political organization
['Ioannis Tsouderos', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?q WHERE { resource:Ioannis_Tsouderos property:member_of_political_party ?q . ?q rdf:type ontology:political_organization }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7407818
Q7210356
USER
And how about Sam Lumpkin?
(Q7407818,P102,c(Q7210356))
action filter_type
action find
entity Q7407818
relation P102
type Q7210356
['Q7407818', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?f WHERE { resource:Q7407818 property:P102 ?f . ?f rdf:type ontology:Q7210356 }
Sam Lumpkin
action filter_type
action find
entity Sam Lumpkin
relation member of political party
type political organization
['Sam Lumpkin', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?f WHERE { resource:Sam_Lumpkin property:member_of_political_party ?f . ?f rdf:type ontology:political_organization }
[]
political organization
Q6879122 Q29552
SYSTEM
Mississippi Democratic Party, Democratic Party
Q6879122 Q29552
(Q7407818,P102,c(Q7210356))
action filter_type
action find
entity Q7407818
relation P102
type Q7210356
[ANSWERS]
['Q7407818', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?f WHERE { resource:Q7407818 property:P102 ?f . ?f rdf:type ontology:Q7210356 }
Mississippi Democratic Party Democratic Party
Mississippi Democratic Party Democratic Party
action filter_type
action find
entity Sam Lumpkin
relation member of political party
type political organization
['Sam Lumpkin', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?f WHERE { resource:Sam_Lumpkin property:member_of_political_party ?f . ?f rdf:type ontology:political_organization }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q7407818
P102
Q502895
USER
Are Sam Lumpkin members of those political organizations ?
(Q7407818,P102,Q6879122) (Q7407818,P102,Q29552)
action is_in
entity prev_answer
action find
entity Q7407818
relation P102
['Q7407818', 'P102', 'Q6879122'] ['Q7407818', 'P102', 'Q29552']
ASK WHERE { VALUES ( ?y ) { ( resource:Q6879122 ) ( resource:Q29552 ) } . resource:Q7407818 property:P102 ?y }
Sam Lumpkin
action is_in
entity prev_answer
action find
entity Sam Lumpkin
relation member of political party
['Sam Lumpkin', 'member of political party', 'Mississippi Democratic Party'] ['Sam Lumpkin', 'member of political party', 'Democratic Party']
ASK WHERE { VALUES ( ?y ) { ( resource:Mississippi_Democratic_Party ) ( resource:Democratic_Party ) } . resource:Sam_Lumpkin property:member_of_political_party ?y }
[]
common name
SYSTEM
YES
(Q7407818,P102,Q6879122) (Q7407818,P102,Q29552)
action is_in
entity prev_answer
action find
entity Q7407818
relation P102
[ANSWER]
['Q7407818', 'P102', 'Q6879122'] ['Q7407818', 'P102', 'Q29552']
ASK WHERE { VALUES ( ?y ) { ( resource:Q6879122 ) ( resource:Q29552 ) } . resource:Q7407818 property:P102 ?y }
Yes
action is_in
entity prev_answer
action find
entity Sam Lumpkin
relation member of political party
['Sam Lumpkin', 'member of political party', 'Mississippi Democratic Party'] ['Sam Lumpkin', 'member of political party', 'Democratic Party']
ASK WHERE { VALUES ( ?y ) { ( resource:Mississippi_Democratic_Party ) ( resource:Democratic_Party ) } . resource:Sam_Lumpkin property:member_of_political_party ?y }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q2545208 Q6879122
P361 P102
Q7210356
USER
Which political organizations are Mississippi Democratic Party a part of and are Ward Hunt a member of ?
AND((Q6879122,P361,c(Q7210356)), (Q2545208,P102,c(Q7210356)))
action filter_type
action intersection
action find
entity Q6879122
relation P361
action find
entity Q2545208
relation P102
type Q7210356
{'AND': [['Q6879122', 'P361', {'concept': 'Q7210356'}], ['Q2545208', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?u WHERE { resource:Q6879122 property:P361 ?u . resource:Q2545208 property:P102 ?u . ?u rdf:type ontology:Q7210356 }
Ward Hunt Mississippi Democratic Party
action filter_type
action intersection
action find
entity Mississippi Democratic Party
relation part of
action find
entity Ward Hunt
relation member of political party
type political organization
{'AND': [['Mississippi Democratic Party', 'part of', {'concept': 'political organization'}], ['Ward Hunt', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?u WHERE { resource:Mississippi_Democratic_Party property:part_of ?u . resource:Ward_Hunt property:member_of_political_party ?u . ?u rdf:type ontology:political_organization }
[]
political organization
Q29552
SYSTEM
Democratic Party
Q29552
AND((Q6879122,P361,c(Q7210356)), (Q2545208,P102,c(Q7210356)))
action filter_type
action intersection
action find
entity Q6879122
relation P361
action find
entity Q2545208
relation P102
type Q7210356
The [ANSWER] is Mississippi [ANSWER] a part of and is Ward Hunt a member of
{'AND': [['Q6879122', 'P361', {'concept': 'Q7210356'}], ['Q2545208', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?u WHERE { resource:Q6879122 property:P361 ?u . resource:Q2545208 property:P102 ?u . ?u rdf:type ontology:Q7210356 }
Democratic Party
The Democratic Party is Mississippi Democratic Party a part of and is Ward Hunt a member of
Democratic Party
action filter_type
action intersection
action find
entity Mississippi Democratic Party
relation part of
action find
entity Ward Hunt
relation member of political party
type political organization
{'AND': [['Mississippi Democratic Party', 'part of', {'concept': 'political organization'}], ['Ward Hunt', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?u WHERE { resource:Mississippi_Democratic_Party property:part_of ?u . resource:Ward_Hunt property:member_of_political_party ?u . ?u rdf:type ontology:political_organization }
[]