Simple Question (Direct)
Simple Question
Q103876
P140
Q874405
USER
Which social group does Peter O'Toole relate to ?
(Q103876,P140,c(Q874405))
action filter_type
action find
entity Q103876
relation P140
type Q874405
['Q103876', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q874405 . resource:Q103876 property:P140 ?n }
Peter O'Toole
action filter_type
action find
entity Peter O'Toole
relation religion
type social group
["Peter O'Toole", 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:social_group . resource:Peter_O'Toole property:religion ?n }
[]
social group
Q1841
SYSTEM
Catholicism
Q1841
(Q103876,P140,c(Q874405))
action filter_type
action find
entity Q103876
relation P140
type Q874405
Peter O'Toole relates to [ANSWER]
['Q103876', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q874405 . resource:Q103876 property:P140 ?n }
Catholicism
Peter O'Toole relates to Catholicism
Catholicism
action filter_type
action find
entity Peter O'Toole
relation religion
type social group
["Peter O'Toole", 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:social_group . resource:Peter_O'Toole property:religion ?n }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q103876
P26
Q502895
USER
Which person is the life partner of Peter O'Toole ?
(c(Q502895),P26,Q103876)
action filter_type
action find
entity Q103876
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q103876']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q502895 . resource:Q103876 property:P26 ?r }
Peter O'Toole
action filter_type
action find
entity Peter O'Toole
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', "Peter O'Toole"]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:common_name . resource:Peter_O'Toole property:spouse ?r }
[]
common name
Q237778
SYSTEM
Siân Phillips
Q237778
(c(Q502895),P26,Q103876)
action filter_type
action find
entity Q103876
relation P26
type Q502895
[ANSWER] is the life partner of Peter O'Toole
[{'concept': 'Q502895'}, 'P26', 'Q103876']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q502895 . resource:Q103876 property:P26 ?r }
Siân Phillips
Siân Phillips is the life partner of Peter O'Toole
Siân Phillips
action filter_type
action find
entity Peter O'Toole
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', "Peter O'Toole"]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:common_name . resource:Peter_O'Toole property:spouse ?r }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q103876
P22
Q502895
USER
Who are the offspring of Peter O'Toole ?
(c(Q502895),P22,Q103876)
action filter_type
action find_reverse
entity Q103876
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q103876']
SELECT DISTINCT ?h WHERE { ?h property:P22 resource:Q103876 . ?h rdf:type ontology:Q502895 }
Peter O'Toole
action filter_type
action find_reverse
entity Peter O'Toole
relation father
type common name
[{'concept': 'common name'}, 'father', "Peter O'Toole"]
SELECT DISTINCT ?h WHERE { ?h property:father resource:Peter_O'Toole . ?h rdf:type ontology:common_name }
[]
common name
Q1735703 Q1869856
SYSTEM
Kate O'Toole, Lorcan O’Toole
Q1735703 Q1869856
(c(Q502895),P22,Q103876)
action filter_type
action find_reverse
entity Q103876
relation P22
type Q502895
The offspring of Peter O'Toole are Mary [ANSWERS]
[{'concept': 'Q502895'}, 'P22', 'Q103876']
SELECT DISTINCT ?h WHERE { ?h property:P22 resource:Q103876 . ?h rdf:type ontology:Q502895 }
Kate O'Toole Lorcan O’Toole
The offspring of Peter O'Toole are Mary Kate O'Toole and Lorcan O’Toole
Kate O'Toole Lorcan O’Toole
action filter_type
action find_reverse
entity Peter O'Toole
relation father
type common name
[{'concept': 'common name'}, 'father', "Peter O'Toole"]
SELECT DISTINCT ?h WHERE { ?h property:father resource:Peter_O'Toole . ?h rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1735703 Q1869856
P40
Q502895
USER
Who have Kate O'Toole and Lorcan O’Toole as a child ?
(c(Q502895),P40,Q1735703) (c(Q502895),P40,Q1869856)
action union
action filter_type
action find_reverse
entity Q1735703
relation P40
type Q502895
action filter_type
action find_reverse
entity Q1869856
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q1735703'] [{'concept': 'Q502895'}, 'P40', 'Q1869856']
SELECT DISTINCT ?t WHERE { { ?t property:P40 resource:Q1735703 . ?t rdf:type ontology:Q502895 } UNION { ?t property:P40 resource:Q1869856 . ?t rdf:type ontology:Q502895 } }
Kate O'Toole Lorcan O’Toole
action union
action filter_type
action find_reverse
entity Kate O'Toole
relation child
type common name
action filter_type
action find_reverse
entity Lorcan O’Toole
relation child
type common name
[{'concept': 'common name'}, 'child', "Kate O'Toole"] [{'concept': 'common name'}, 'child', 'Lorcan O’Toole']
SELECT DISTINCT ?t WHERE { { ?t property:child resource:Kate_O'Toole . ?t rdf:type ontology:common_name } UNION { ?t property:child resource:Lorcan_O’Toole . ?t rdf:type ontology:common_name } }
[]
common name
Q103876
SYSTEM
Peter O'Toole
Q103876
(c(Q502895),P40,Q1735703) (c(Q502895),P40,Q1869856)
action union
action filter_type
action find_reverse
entity Q1735703
relation P40
type Q502895
action filter_type
action find_reverse
entity Q1869856
relation P40
type Q502895
[ANSWER] have Kate O'Toole and Lorcan O’Toole as a child
[{'concept': 'Q502895'}, 'P40', 'Q1735703'] [{'concept': 'Q502895'}, 'P40', 'Q1869856']
SELECT DISTINCT ?t WHERE { { ?t property:P40 resource:Q1735703 . ?t rdf:type ontology:Q502895 } UNION { ?t property:P40 resource:Q1869856 . ?t rdf:type ontology:Q502895 } }
Peter O'Toole
Peter O'Toole have Kate O'Toole and Lorcan O’Toole as a child
Peter O'Toole
action union
action filter_type
action find_reverse
entity Kate O'Toole
relation child
type common name
action filter_type
action find_reverse
entity Lorcan O’Toole
relation child
type common name
[{'concept': 'common name'}, 'child', "Kate O'Toole"] [{'concept': 'common name'}, 'child', 'Lorcan O’Toole']
SELECT DISTINCT ?t WHERE { { ?t property:child resource:Kate_O'Toole . ?t rdf:type ontology:common_name } UNION { ?t property:child resource:Lorcan_O’Toole . ?t rdf:type ontology:common_name } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1735703
P7
Q502895
USER
Who has Kate O'Toole as their brother ?
(Q1735703,P7,c(Q502895))
action filter_type
action find
entity Q1735703
relation P7
type Q502895
['Q1735703', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . resource:Q1735703 property:P7 ?a }
Kate O'Toole
action filter_type
action find
entity Kate O'Toole
relation brother
type common name
["Kate O'Toole", 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . resource:Kate_O'Toole property:brother ?a }
[]
common name
Q1869856
SYSTEM
Lorcan O’Toole
Q1869856
(Q1735703,P7,c(Q502895))
action filter_type
action find
entity Q1735703
relation P7
type Q502895
[ANSWER] has Kate O'Toole as their brother
['Q1735703', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . resource:Q1735703 property:P7 ?a }
Lorcan O’Toole
Lorcan O’Toole has Kate O'Toole as their brother
Lorcan O’Toole
action filter_type
action find
entity Kate O'Toole
relation brother
type common name
["Kate O'Toole", 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . resource:Kate_O'Toole property:brother ?a }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4120307
Q502895
USER
And how about Badr bin Abdulaziz Al Saud?
(Q4120307,P7,c(Q502895))
action filter_type
action find
entity Q4120307
relation P7
type Q502895
['Q4120307', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . resource:Q4120307 property:P7 ?q }
Badr bin Abdulaziz Al Saud
action filter_type
action find
entity Badr bin Abdulaziz Al Saud
relation brother
type common name
['Badr bin Abdulaziz Al Saud', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . resource:Badr_bin_Abdulaziz_Al_Saud property:brother ?q }
[]
common name
Q57298 Q244206 Q217167
SYSTEM
Abdullah of Saudi Arabia, Saud of Saudi Arabia, Faisal of Saudi Arabia
Q12203730 Q367825 Q6745575 Q2460829 Q6751859 Q183187 Q4549135 Q307463 Q57298 Q208301 Q315587 Q4120312 Q712690 Q981846 Q3133541 Q401645 Q6982977 Q317832 Q4115542 Q124710 Q12242559 Q244206 Q1998925 Q1975943 Q217167 Q6967643 Q2602302 Q7395569 Q4665420 Q4119087 Q4854440
(Q4120307,P7,c(Q502895))
action filter_type
action find
entity Q4120307
relation P7
type Q502895
[ANSWERS]
['Q4120307', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . resource:Q4120307 property:P7 ?q }
Thamir bin Abdulaziz Al Saud Salman bin Abdulaziz Al Saud Mamdouh bin Abdulaziz Turki II bin Abdul-Aziz Al Saud Mansour bin Abdulaziz Al Saud Fahd of Saudi Arabia Mashhur bin Abdulaziz Al Saud Abdul-Rahman bin Abdul-Aziz Al Saud Abdullah of Saudi Arabia Khalid of Saudi Arabia Sultan bin Abdulaziz Fawwaz bin Abdulaziz Al Saud Talal bin Abdulaziz Al Saud Muqrin bin Abdul-Aziz Al Saud Sattam bin Abdul-Aziz Al Saud Ahmed bin Abdulaziz Al Saud Nawwaf bin Abdulaziz Al Saud Nayef bin Abdul-Aziz Al Saud Abdul Majeed bin Abdulaziz Al Saud Mutaib bin Abdulaziz Al Saud Musa'id bin Abdulaziz Al Saud Saud of Saudi Arabia Turki I bin Abdul-Aziz Al Saud Muhammad bin Abdulaziz Al Saud Faisal of Saudi Arabia Nasser bin Abdulaziz Mishaal bin Abdulaziz Al Saud Saad bin Abdulaziz Abdul Ilah bin Abdulaziz Al Saud Hazloul bin Abdulaziz Al Saud Bandar bin Abdulaziz Al Saud
Abdullah of Saudi Arabia Saud of Saudi Arabia Faisal of Saudi Arabia
action filter_type
action find
entity Badr bin Abdulaziz Al Saud
relation brother
type common name
['Badr bin Abdulaziz Al Saud', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . resource:Badr_bin_Abdulaziz_Al_Saud property:brother ?q }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q716636
P725
Q502895 Q6619679
USER
Which fictional humanoids had less number of people as the dubbing artist than Mr. Burns ?
(c(Q6619679),P725,c(Q502895))
action less
action find_tuple_counts
relation P725
type Q6619679
type Q502895
action count
action filter_type
action find
entity Q716636
relation P725
type Q502895
[{'concept': 'Q6619679'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?a ) AS ?m ) WHERE { ?d property:P725 ?a . ?d rdf:type ontology:Q6619679 . ?a rdf:type ontology:Q502895 } GROUP BY ?d } . FILTER ( ?m < ?j ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { resource:Q716636 property:P725 ?u . ?u rdf:type ontology:Q502895 } } }
Mr. Burns
action less
action find_tuple_counts
relation voice actor
type fictional humanoid
type common name
action count
action filter_type
action find
entity Mr. Burns
relation voice actor
type common name
[{'concept': 'fictional humanoid'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?a ) AS ?m ) WHERE { ?d property:voice_actor ?a . ?d rdf:type ontology:fictional_humanoid . ?a rdf:type ontology:common_name } GROUP BY ?d } . FILTER ( ?m < ?j ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { resource:Mr._Burns property:voice_actor ?u . ?u rdf:type ontology:common_name } } }
[]
common name fictional humanoid
Q1623086 Q1205263 Q3149148
SYSTEM
Hector Barbossa, Eli Vance, Imoen
Q1623086 Q1205263 Q4992177 Q24010814 Q819585 Q1079617 Q4006757 Q15614636 Q1056953 Q250221 Q3149148 Q757015 Q15620419 Q13471616 Q12879 Q1154920
(c(Q6619679),P725,c(Q502895))
action less
action find_tuple_counts
relation P725
type Q6619679
type Q502895
action count
action filter_type
action find
entity Q716636
relation P725
type Q502895
[ANSWERS] had less number of people as the dubbing artist than Mr. Burns
[{'concept': 'Q6619679'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?a ) AS ?m ) WHERE { ?d property:P725 ?a . ?d rdf:type ontology:Q6619679 . ?a rdf:type ontology:Q502895 } GROUP BY ?d } . FILTER ( ?m < ?j ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { resource:Q716636 property:P725 ?u . ?u rdf:type ontology:Q502895 } } }
Hector Barbossa Eli Vance Cave Johnson Deckard Cain Jaina Proudmoore Wallace Breen Utena Tenjo Anna (Disney) Minsc Alyx Vance Imoen Sailor Moon Elsa Mr. Bean Toph Beifong Father Grigori
Hector Barbossa, Eli Vance and Imoen had less number of people as the dubbing artist than Mr. Burns
Hector Barbossa Eli Vance Imoen
action less
action find_tuple_counts
relation voice actor
type fictional humanoid
type common name
action count
action filter_type
action find
entity Mr. Burns
relation voice actor
type common name
[{'concept': 'fictional humanoid'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?a ) AS ?m ) WHERE { ?d property:voice_actor ?a . ?d rdf:type ontology:fictional_humanoid . ?a rdf:type ontology:common_name } GROUP BY ?d } . FILTER ( ?m < ?j ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) WHERE { resource:Mr._Burns property:voice_actor ?u . ?u rdf:type ontology:common_name } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q994344
P725
Q502895 Q6619679
USER
And what about Ezio Auditore da Firenze?
(c(Q6619679),P725,c(Q502895))
action less
action find_tuple_counts
relation P725
type Q6619679
type Q502895
action count
action filter_type
action find
entity Q994344
relation P725
type Q502895
[{'concept': 'Q6619679'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?z ) WHERE { ?c rdf:type ontology:Q6619679 . ?n rdf:type ontology:Q502895 . ?c property:P725 ?n } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { resource:Q994344 property:P725 ?y . ?y rdf:type ontology:Q502895 } } . FILTER ( ?z < ?p ) }
Ezio Auditore da Firenze
action less
action find_tuple_counts
relation voice actor
type fictional humanoid
type common name
action count
action filter_type
action find
entity Ezio Auditore da Firenze
relation voice actor
type common name
[{'concept': 'fictional humanoid'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?z ) WHERE { ?c rdf:type ontology:fictional_humanoid . ?n rdf:type ontology:common_name . ?c property:voice_actor ?n } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { resource:Ezio_Auditore_da_Firenze property:voice_actor ?y . ?y rdf:type ontology:common_name } } . FILTER ( ?z < ?p ) }
[]
common name fictional humanoid
Q1623086 Q1205263 Q3149148
SYSTEM
Hector Barbossa, Eli Vance, Imoen
Q1623086 Q1205263 Q11609133 Q15726751 Q4992177 Q24010814 Q11479883 Q819585 Q1079617 Q718965 Q3784876 Q4006757 Q15614636 Q1148698 Q1056953 Q18073923 Q250221 Q3149148 Q18156023 Q6989902 Q15726744 Q601978 Q757015 Q15620419 Q13471616 Q12879 Q19796729 Q716636 Q1154920
(c(Q6619679),P725,c(Q502895))
action less
action find_tuple_counts
relation P725
type Q6619679
type Q502895
action count
action filter_type
action find
entity Q994344
relation P725
type Q502895
[ANSWERS]
[{'concept': 'Q6619679'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?z ) WHERE { ?c rdf:type ontology:Q6619679 . ?n rdf:type ontology:Q502895 . ?c property:P725 ?n } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { resource:Q994344 property:P725 ?y . ?y rdf:type ontology:Q502895 } } . FILTER ( ?z < ?p ) }
Hector Barbossa Eli Vance Sayaka Miki Diamond Tiara Cave Johnson Deckard Cain Mami Tomoe Jaina Proudmoore Wallace Breen Hinata Hyuga Henrietta Utena Tenjo Anna (Disney) Ai Haibara Minsc Sunset Shimmer Alyx Vance Imoen Maud Pie Neku Sakuraba Silver Spoon Kyon Sailor Moon Elsa Mr. Bean Toph Beifong Michelle Mr. Burns Father Grigori
Hector Barbossa Eli Vance Imoen
action less
action find_tuple_counts
relation voice actor
type fictional humanoid
type common name
action count
action filter_type
action find
entity Ezio Auditore da Firenze
relation voice actor
type common name
[{'concept': 'fictional humanoid'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?z ) WHERE { ?c rdf:type ontology:fictional_humanoid . ?n rdf:type ontology:common_name . ?c property:voice_actor ?n } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { resource:Ezio_Auditore_da_Firenze property:voice_actor ?y . ?y rdf:type ontology:common_name } } . FILTER ( ?z < ?p ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1623086
P734
Q82799
USER
Which name is associated with that fictional humanoid ?
(Q1623086,P734,c(Q82799))
action filter_type
action find
entity Q1623086
relation P734
type Q82799
['Q1623086', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?t WHERE { resource:Q1623086 property:P734 ?t . ?t rdf:type ontology:Q82799 }
Hector Barbossa
action filter_type
action find
entity Hector Barbossa
relation family name
type name
['Hector Barbossa', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?t WHERE { resource:Hector_Barbossa property:family_name ?t . ?t rdf:type ontology:name }
[]
name
Clarification for simple ques.
Q3149148
SYSTEM
Did you mean Imoen ?
Q1623086 Q1205263 Q3149148
(Q1623086,P734,c(Q82799)) (Q1205263,P734,c(Q82799)) (Q3149148,P734,c(Q82799))
[ANSWER]
['Q1623086', 'P734', {'concept': 'Q82799'}] ['Q1205263', 'P734', {'concept': 'Q82799'}] ['Q3149148', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?t WHERE { resource:Q1623086 property:P734 ?t . ?t rdf:type ontology:Q82799 }
Hector Barbossa Eli Vance Imoen
Did you mean Imoen ?
Imoen
['Hector Barbossa', 'family name', {'concept': 'name'}] ['Eli Vance', 'family name', {'concept': 'name'}] ['Imoen', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?t WHERE { resource:Hector_Barbossa property:family_name ?t . ?t rdf:type ontology:name }
[]
Simple Question (Coreferenced)
USER
No, I meant Hector Barbossa. Could you tell me the answer for that?
(Q1623086,P734,c(Q82799))
Q1623086
['Q1623086', 'P734', {'concept': 'Q82799'}]
['Hector Barbossa', 'family name', {'concept': 'name'}]
[]
Q25443250
SYSTEM
Barbosa
Q25443250
(Q1623086,P734,c(Q82799))
action filter_type
action find
entity Q1623086
relation P734
type Q82799
[ANSWER] is associated with that fictional humanoid
['Q1623086', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?t WHERE { resource:Q1623086 property:P734 ?t . ?t rdf:type ontology:Q82799 }
Barbosa
Barbosa is associated with that fictional humanoid
Barbosa
action filter_type
action find
entity Hector Barbossa
relation family name
type name
['Hector Barbossa', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?t WHERE { resource:Hector_Barbossa property:family_name ?t . ?t rdf:type ontology:name }
[]