Simple Question (Direct)
Simple Question
Q260893
P463
Q874405
USER
What were Nélida Piñon a member of ?
(Q260893,P463,c(Q874405))
action filter_type
action find
entity Q260893
relation P463
type Q874405
['Q260893', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q874405 . resource:Q260893 property:P463 ?s }
Nélida Piñon
action filter_type
action find
entity Nélida Piñon
relation member of
type social group
['Nélida Piñon', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:social_group . resource:Nélida_Piñon property:member_of ?s }
[]
social group
Q2749618 Q337224
SYSTEM
Academia Mexicana de la Lengua, Academia Brasileira de Letras
Q2749618 Q337224
(Q260893,P463,c(Q874405))
action filter_type
action find
entity Q260893
relation P463
type Q874405
Nélida Piñon a member of were the [ANSWERS]
['Q260893', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q874405 . resource:Q260893 property:P463 ?s }
Academia Mexicana de la Lengua Academia Brasileira de Letras
Nélida Piñon a member of were the Academia Mexicana de la Lengua and Academia Brasileira de Letras
Academia Mexicana de la Lengua Academia Brasileira de Letras
action filter_type
action find
entity Nélida Piñon
relation member of
type social group
['Nélida Piñon', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:social_group . resource:Nélida_Piñon property:member_of ?s }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q260893
P21
Q290
USER
Which sex does Nélida Piñon have ?
(Q260893,P21,c(Q290))
action filter_type
action find
entity Q260893
relation P21
type Q290
['Q260893', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q260893 property:P21 ?o . ?o rdf:type ontology:Q290 }
Nélida Piñon
action filter_type
action find
entity Nélida Piñon
relation gender
type sex
['Nélida Piñon', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Nélida_Piñon property:gender ?o . ?o rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q260893,P21,c(Q290))
action filter_type
action find
entity Q260893
relation P21
type Q290
Nélida Piñon has 1 [ANSWER]
['Q260893', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q260893 property:P21 ?o . ?o rdf:type ontology:Q290 }
female
Nélida Piñon has 1 female
female
action filter_type
action find
entity Nélida Piñon
relation gender
type sex
['Nélida Piñon', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Nélida_Piñon property:gender ?o . ?o rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3809125
Q290
USER
And also tell me about John Byng, 1st Earl of Strafford?
(Q3809125,P21,c(Q290))
action filter_type
action find
entity Q3809125
relation P21
type Q290
['Q3809125', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q3809125 property:P21 ?e . ?e rdf:type ontology:Q290 }
John Byng, 1st Earl of Strafford
action filter_type
action find
entity John Byng, 1st Earl of Strafford
relation gender
type sex
['John Byng, 1st Earl of Strafford', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:John_Byng,_1st_Earl_of_Strafford property:gender ?e . ?e rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3809125,P21,c(Q290))
action filter_type
action find
entity Q3809125
relation P21
type Q290
[ANSWER]
['Q3809125', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q3809125 property:P21 ?e . ?e rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity John Byng, 1st Earl of Strafford
relation gender
type sex
['John Byng, 1st Earl of Strafford', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:John_Byng,_1st_Earl_of_Strafford property:gender ?e . ?e rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581097
P136
Q502895
USER
Which people have that sex as genre ?
(c(Q502895),P136,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P136
type Q502895
[{'concept': 'Q502895'}, 'P136', 'Q6581097']
SELECT DISTINCT ?f WHERE { ?f property:P136 resource:Q6581097 . ?f rdf:type ontology:Q502895 }
male
action filter_type
action find_reverse
entity male
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'male']
SELECT DISTINCT ?f WHERE { ?f property:genre resource:male . ?f rdf:type ontology:common_name }
[]
common name
Q313288 Q18221191 Q23766532
SYSTEM
Augustus Pugin, Alessandro Gregorio Capponi, Pierre Laviron
Q19796723 Q23766532 Q313288 Q18221191
(c(Q502895),P136,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P136
type Q502895
[ANSWERS] have that sex as genre
[{'concept': 'Q502895'}, 'P136', 'Q6581097']
SELECT DISTINCT ?f WHERE { ?f property:P136 resource:Q6581097 . ?f rdf:type ontology:Q502895 }
Francesc Xavier Avilés i Puigvert Pierre Laviron Augustus Pugin Alessandro Gregorio Capponi
Augustus Pugin, Alessandro Gregorio Capponi and Pierre Laviron have that sex as genre
Augustus Pugin Alessandro Gregorio Capponi Pierre Laviron
action filter_type
action find_reverse
entity male
relation genre
type common name
[{'concept': 'common name'}, 'genre', 'male']
SELECT DISTINCT ?f WHERE { ?f property:genre resource:male . ?f rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q21847089
P725
Q502895 Q95074
USER
Which fictional characters had lesser number of people as the dubbing artist than Kenji ?
(c(Q95074),P725,c(Q502895))
action less
action find_tuple_counts
relation P725
type Q95074
type Q502895
action count
action filter_type
action find
entity Q21847089
relation P725
type Q502895
[{'concept': 'Q95074'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?y ) AS ?q ) WHERE { ?s property:P725 ?y . ?s rdf:type ontology:Q95074 . ?y rdf:type ontology:Q502895 } GROUP BY ?s } . FILTER ( ?q < ?f ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { resource:Q21847089 property:P725 ?u . ?u rdf:type ontology:Q502895 } } }
Kenji
action less
action find_tuple_counts
relation voice actor
type fictional character
type common name
action count
action filter_type
action find
entity Kenji
relation voice actor
type common name
[{'concept': 'fictional character'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?y ) AS ?q ) WHERE { ?s property:voice_actor ?y . ?s rdf:type ontology:fictional_character . ?y rdf:type ontology:common_name } GROUP BY ?s } . FILTER ( ?q < ?f ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { resource:Kenji property:voice_actor ?u . ?u rdf:type ontology:common_name } } }
[]
common name fictional character
Q7828 Q7810 Q247120
SYSTEM
Marge Simpson, Homer Simpson, Neo
Q21847055 Q3498590 Q308950 Q28465 Q551327 Q2442950 Q7828 Q3838346 Q8139731 Q247120 Q1529229 Q27493503 Q605125 Q5846 Q7810 Q2725247
(c(Q95074),P725,c(Q502895))
action less
action find_tuple_counts
relation P725
type Q95074
type Q502895
action count
action filter_type
action find
entity Q21847089
relation P725
type Q502895
[ANSWERS] had lesser number of people as the dubbing artist than Kenji
[{'concept': 'Q95074'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?y ) AS ?q ) WHERE { ?s property:P725 ?y . ?s rdf:type ontology:Q95074 . ?y rdf:type ontology:Q502895 } GROUP BY ?s } . FILTER ( ?q < ?f ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { resource:Q21847089 property:P725 ?u . ?u rdf:type ontology:Q502895 } } }
Itsuki Tachibana Chester Cheetah Ash Ketchum Peter Griffin terminator Max Rockatansky Marge Simpson Lucas G-Man Neo Darkwing Duck Desoto GLaDOS Lisa Simpson Homer Simpson Ness
Marge Simpson, Homer Simpson and Neo had lesser number of people as the dubbing artist than Kenji
Marge Simpson Homer Simpson Neo
action less
action find_tuple_counts
relation voice actor
type fictional character
type common name
action count
action filter_type
action find
entity Kenji
relation voice actor
type common name
[{'concept': 'fictional character'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?y ) AS ?q ) WHERE { ?s property:voice_actor ?y . ?s rdf:type ontology:fictional_character . ?y rdf:type ontology:common_name } GROUP BY ?s } . FILTER ( ?q < ?f ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { resource:Kenji property:voice_actor ?u . ?u rdf:type ontology:common_name } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q260893
P106
Q12737077
USER
Which occupations are the professions of Nélida Piñon ?
(Q260893,P106,c(Q12737077))
action filter_type
action find
entity Q260893
relation P106
type Q12737077
['Q260893', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q260893 property:P106 ?j . ?j rdf:type ontology:Q12737077 }
Nélida Piñon
action filter_type
action find
entity Nélida Piñon
relation occupation
type occupation
['Nélida Piñon', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Nélida_Piñon property:occupation ?j . ?j rdf:type ontology:occupation }
[]
occupation
Q36180 Q6625963
SYSTEM
writer, novelist
Q36180 Q6625963
(Q260893,P106,c(Q12737077))
action filter_type
action find
entity Q260893
relation P106
type Q12737077
The professions of Nélida Piñon are the [ANSWERS]
['Q260893', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q260893 property:P106 ?j . ?j rdf:type ontology:Q12737077 }
writer novelist
The professions of Nélida Piñon are the writer and novelist
writer novelist
action filter_type
action find
entity Nélida Piñon
relation occupation
type occupation
['Nélida Piñon', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Nélida_Piñon property:occupation ?j . ?j rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7810
P7
Q6619679
USER
Which fictional humanoid has Homer Simpson as their brother ?
(c(Q6619679),P7,Q7810)
action filter_type
action find
entity Q7810
relation P7
type Q6619679
[{'concept': 'Q6619679'}, 'P7', 'Q7810']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q6619679 . resource:Q7810 property:P7 ?m }
Homer Simpson
action filter_type
action find
entity Homer Simpson
relation brother
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'brother', 'Homer Simpson']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:fictional_humanoid . resource:Homer_Simpson property:brother ?m }
[]
fictional humanoid
Q2340973
SYSTEM
Herbert Powell
Q2340973
(c(Q6619679),P7,Q7810)
action filter_type
action find
entity Q7810
relation P7
type Q6619679
[ANSWER] has Homer Simpson as their brother
[{'concept': 'Q6619679'}, 'P7', 'Q7810']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q6619679 . resource:Q7810 property:P7 ?m }
Herbert Powell
Herbert Powell has Homer Simpson as their brother
Herbert Powell
action filter_type
action find
entity Homer Simpson
relation brother
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'brother', 'Homer Simpson']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:fictional_humanoid . resource:Homer_Simpson property:brother ?m }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7810
P22
Q95074
USER
Who was the father of that one ?
(Q2340973,P22,c(Q95074))
action filter_type
action find
entity Q7810
relation P22
type Q95074
['Q2340973', 'P22', {'concept': 'Q95074'}]
SELECT DISTINCT ?g WHERE { resource:Q7810 property:P22 ?g . ?g rdf:type ontology:Q95074 }
Homer Simpson
action filter_type
action find
entity Homer Simpson
relation father
type fictional character
['Herbert Powell', 'father', {'concept': 'fictional character'}]
SELECT DISTINCT ?g WHERE { resource:Homer_Simpson property:father ?g . ?g rdf:type ontology:fictional_character }
[]
fictional character
Q842104
SYSTEM
Grampa Simpson
Q842104
(Q2340973,P22,c(Q95074))
action filter_type
action find
entity Q7810
relation P22
type Q95074
The father of that one was Simpson [ANSWER]
['Q2340973', 'P22', {'concept': 'Q95074'}]
SELECT DISTINCT ?g WHERE { resource:Q7810 property:P22 ?g . ?g rdf:type ontology:Q95074 }
Grampa Simpson
The father of that one was Simpson Grampa Simpson
Grampa Simpson
action filter_type
action find
entity Homer Simpson
relation father
type fictional character
['Herbert Powell', 'father', {'concept': 'fictional character'}]
SELECT DISTINCT ?g WHERE { resource:Homer_Simpson property:father ?g . ?g rdf:type ontology:fictional_character }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P674
Q95074 Q15850590
USER
How many fictional characters plays a role in greater number of theatrical genres than that fictional character ?
(c(Q15850590),P674,c(Q95074))
action count
action greater
action find_reverse_tuple_counts
relation P674
type Q95074
type Q15850590
action count
action filter_type
action find
entity Q842104
relation P674
type Q95074
[{'concept': 'Q15850590'}, 'P674', {'concept': 'Q95074'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?d ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?a ) AS ?f ) WHERE { ?a property:P674 ?l . ?l rdf:type ontology:Q95074 . ?a rdf:type ontology:Q15850590 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) WHERE { resource:Q842104 property:P674 ?x . ?x rdf:type ontology:Q95074 } } . FILTER ( ?f > ?p ) }
action count
action greater
action find_reverse_tuple_counts
relation characters
type fictional character
type theatrical genre
action count
action filter_type
action find
entity Grampa Simpson
relation characters
type fictional character
[{'concept': 'theatrical genre'}, 'characters', {'concept': 'fictional character'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?d ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?a ) AS ?f ) WHERE { ?a property:characters ?l . ?l rdf:type ontology:fictional_character . ?a rdf:type ontology:theatrical_genre } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) WHERE { resource:Grampa_Simpson property:characters ?x . ?x rdf:type ontology:fictional_character } } . FILTER ( ?f > ?p ) }
[]
fictional character theatrical genre
SYSTEM
3
Q1115859 Q22264381 Q16451200
(c(Q15850590),P674,c(Q95074))
action count
action greater
action find_reverse_tuple_counts
relation P674
type Q95074
type Q15850590
action count
action filter_type
action find
entity Q842104
relation P674
type Q95074
[ANSWER]
[{'concept': 'Q15850590'}, 'P674', {'concept': 'Q95074'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?d ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?a ) AS ?f ) WHERE { ?a property:P674 ?l . ?l rdf:type ontology:Q95074 . ?a rdf:type ontology:Q15850590 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) WHERE { resource:Q842104 property:P674 ?x . ?x rdf:type ontology:Q95074 } } . FILTER ( ?f > ?p ) }
Horatius Cocles Barbarella Taras Bulba
3
action count
action greater
action find_reverse_tuple_counts
relation characters
type fictional character
type theatrical genre
action count
action filter_type
action find
entity Grampa Simpson
relation characters
type fictional character
[{'concept': 'theatrical genre'}, 'characters', {'concept': 'fictional character'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?d ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?a ) AS ?f ) WHERE { ?a property:characters ?l . ?l rdf:type ontology:fictional_character . ?a rdf:type ontology:theatrical_genre } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) WHERE { resource:Grampa_Simpson property:characters ?x . ?x rdf:type ontology:fictional_character } } . FILTER ( ?f > ?p ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7810
P26
Q95074
USER
Which fictional character is the life partner of Homer Simpson ?
(c(Q95074),P26,Q7810)
action filter_type
action find
entity Q7810
relation P26
type Q95074
[{'concept': 'Q95074'}, 'P26', 'Q7810']
SELECT DISTINCT ?u WHERE { resource:Q7810 property:P26 ?u . ?u rdf:type ontology:Q95074 }
Homer Simpson
action filter_type
action find
entity Homer Simpson
relation spouse
type fictional character
[{'concept': 'fictional character'}, 'spouse', 'Homer Simpson']
SELECT DISTINCT ?u WHERE { resource:Homer_Simpson property:spouse ?u . ?u rdf:type ontology:fictional_character }
[]
fictional character
Q7828
SYSTEM
Marge Simpson
Q7828
(c(Q95074),P26,Q7810)
action filter_type
action find
entity Q7810
relation P26
type Q95074
[ANSWER] is the life partner of Homer Simpson
[{'concept': 'Q95074'}, 'P26', 'Q7810']
SELECT DISTINCT ?u WHERE { resource:Q7810 property:P26 ?u . ?u rdf:type ontology:Q95074 }
Marge Simpson
Marge Simpson is the life partner of Homer Simpson
Marge Simpson
action filter_type
action find
entity Homer Simpson
relation spouse
type fictional character
[{'concept': 'fictional character'}, 'spouse', 'Homer Simpson']
SELECT DISTINCT ?u WHERE { resource:Homer_Simpson property:spouse ?u . ?u rdf:type ontology:fictional_character }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7828
P9
Q6619679
USER
Who had that fictional character as their sibling ?
(c(Q6619679),P9,Q7828)
action filter_type
action find
entity Q7828
relation P9
type Q6619679
[{'concept': 'Q6619679'}, 'P9', 'Q7828']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q6619679 . resource:Q7828 property:P9 ?k }
Marge Simpson
action filter_type
action find
entity Marge Simpson
relation sister
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'sister', 'Marge Simpson']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:fictional_humanoid . resource:Marge_Simpson property:sister ?k }
[]
fictional humanoid
Q10406147 Q3307708
SYSTEM
Patty Bouvier, Selma Bouvier
Q10406147 Q3307708
(c(Q6619679),P9,Q7828)
action filter_type
action find
entity Q7828
relation P9
type Q6619679
[ANSWERS] had that fictional character as their sibling
[{'concept': 'Q6619679'}, 'P9', 'Q7828']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q6619679 . resource:Q7828 property:P9 ?k }
Patty Bouvier Selma Bouvier
Patty Bouvier and Selma Bouvier had that fictional character as their sibling
Patty Bouvier Selma Bouvier
action filter_type
action find
entity Marge Simpson
relation sister
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'sister', 'Marge Simpson']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:fictional_humanoid . resource:Marge_Simpson property:sister ?k }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q2552079
P157
Q6619679 Q95074
USER
How many fictional characters were murdered by lesser number of fictional humanoids than Tara Maclay ?
(c(Q95074),P157,c(Q6619679))
action count
action less
action find_tuple_counts
relation P157
type Q95074
type Q6619679
action count
action filter_type
action find
entity Q2552079
relation P157
type Q6619679
[{'concept': 'Q95074'}, 'P157', {'concept': 'Q6619679'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?j ) WHERE { ?x rdf:type ontology:Q95074 . ?i rdf:type ontology:Q6619679 . ?x property:P157 ?i } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { resource:Q2552079 property:P157 ?z . ?z rdf:type ontology:Q6619679 } } . FILTER ( ?j < ?g ) }
Tara Maclay
action count
action less
action find_tuple_counts
relation killed by
type fictional character
type fictional humanoid
action count
action filter_type
action find
entity Tara Maclay
relation killed by
type fictional humanoid
[{'concept': 'fictional character'}, 'killed by', {'concept': 'fictional humanoid'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?j ) WHERE { ?x rdf:type ontology:fictional_character . ?i rdf:type ontology:fictional_humanoid . ?x property:killed_by ?i } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { resource:Tara_Maclay property:killed_by ?z . ?z rdf:type ontology:fictional_humanoid } } . FILTER ( ?j < ?g ) }
[]
fictional humanoid fictional character
SYSTEM
26
Q2393619 Q1977325 Q2392421 Q20822950 Q27703691 Q27636389 Q21065657 Q507978 Q3219705 Q27717527 Q51336 Q51770 Q4160404 Q21972177 Q1660555 Q51277 Q889656 Q2287748 Q6175066 Q520812 Q51341 Q1242632 Q2373832 Q2109776 Q27429887 Q27681931
(c(Q95074),P157,c(Q6619679))
action count
action less
action find_tuple_counts
relation P157
type Q95074
type Q6619679
action count
action filter_type
action find
entity Q2552079
relation P157
type Q6619679
[ANSWER]
[{'concept': 'Q95074'}, 'P157', {'concept': 'Q6619679'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?j ) WHERE { ?x rdf:type ontology:Q95074 . ?i rdf:type ontology:Q6619679 . ?x property:P157 ?i } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { resource:Q2552079 property:P157 ?z . ?z rdf:type ontology:Q6619679 } } . FILTER ( ?j < ?g ) }
Buffalo Bill Scar Constance Bonacieux Bartholomew Jehan Frollo Diablo executioner of Lille Milady de Winter Lausus Quasimodo's Mother Shannon Rutherford Palpatine John Francis Winter Jean-Marie-François Morhange Maleficent Ana Lucia Cortez Amulius Mufasa Ursula Claude Frollo Martin Keamy Remus Comte de Rochefort Red John Madame Medusa Kocoum
26
action count
action less
action find_tuple_counts
relation killed by
type fictional character
type fictional humanoid
action count
action filter_type
action find
entity Tara Maclay
relation killed by
type fictional humanoid
[{'concept': 'fictional character'}, 'killed by', {'concept': 'fictional humanoid'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?j ) WHERE { ?x rdf:type ontology:fictional_character . ?i rdf:type ontology:fictional_humanoid . ?x property:killed_by ?i } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) WHERE { resource:Tara_Maclay property:killed_by ?z . ?z rdf:type ontology:fictional_humanoid } } . FILTER ( ?j < ?g ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7810
P40
Q95074
USER
Who has Homer Simpson as a child ?
(c(Q95074),P40,Q7810)
action filter_type
action find_reverse
entity Q7810
relation P40
type Q95074
[{'concept': 'Q95074'}, 'P40', 'Q7810']
SELECT DISTINCT ?g WHERE { ?g property:P40 resource:Q7810 . ?g rdf:type ontology:Q95074 }
Homer Simpson
action filter_type
action find_reverse
entity Homer Simpson
relation child
type fictional character
[{'concept': 'fictional character'}, 'child', 'Homer Simpson']
SELECT DISTINCT ?g WHERE { ?g property:child resource:Homer_Simpson . ?g rdf:type ontology:fictional_character }
[]
fictional character
Q842104
SYSTEM
Grampa Simpson
Q842104
(c(Q95074),P40,Q7810)
action filter_type
action find_reverse
entity Q7810
relation P40
type Q95074
[ANSWER] has Homer Simpson as a child
[{'concept': 'Q95074'}, 'P40', 'Q7810']
SELECT DISTINCT ?g WHERE { ?g property:P40 resource:Q7810 . ?g rdf:type ontology:Q95074 }
Grampa Simpson
Grampa Simpson has Homer Simpson as a child
Grampa Simpson
action filter_type
action find_reverse
entity Homer Simpson
relation child
type fictional character
[{'concept': 'fictional character'}, 'child', 'Homer Simpson']
SELECT DISTINCT ?g WHERE { ?g property:child resource:Homer_Simpson . ?g rdf:type ontology:fictional_character }
[]