Simple Question (Direct)
Simple Question
Q4806987
P9
Q502895
USER
Who is the sibling of Asim ibn Umar ?
(Q4806987,P9,c(Q502895))
action filter_type
action find
entity Q4806987
relation P9
type Q502895
['Q4806987', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q4806987 property:P9 ?b . ?b rdf:type ontology:Q502895 }
Asim ibn Umar
action filter_type
action find
entity Asim ibn Umar
relation sister
type common name
['Asim ibn Umar', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Asim_ibn_Umar property:sister ?b . ?b rdf:type ontology:common_name }
[]
common name
Q263791
SYSTEM
Hafsa bint Umar
Q263791
(Q4806987,P9,c(Q502895))
action filter_type
action find
entity Q4806987
relation P9
type Q502895
The sibling of Asim ibn Umar is named [ANSWER]
['Q4806987', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q4806987 property:P9 ?b . ?b rdf:type ontology:Q502895 }
Hafsa bint Umar
The sibling of Asim ibn Umar is named Hafsa bint Umar
Hafsa bint Umar
action filter_type
action find
entity Asim ibn Umar
relation sister
type common name
['Asim ibn Umar', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Asim_ibn_Umar property:sister ?b . ?b rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q263791
P26
Q502895
USER
Which people are the life partner of that one ?
(c(Q502895),P26,Q263791)
action filter_type
action find
entity Q263791
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q263791']
SELECT DISTINCT ?w WHERE { resource:Q263791 property:P26 ?w . ?w rdf:type ontology:Q502895 }
Hafsa bint Umar
action filter_type
action find
entity Hafsa bint Umar
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Hafsa bint Umar']
SELECT DISTINCT ?w WHERE { resource:Hafsa_bint_Umar property:spouse ?w . ?w rdf:type ontology:common_name }
[]
common name
Q1108598 Q9458
SYSTEM
Khunais ibn Hudhaifa, Muhammad
Q1108598 Q9458
(c(Q502895),P26,Q263791)
action filter_type
action find
entity Q263791
relation P26
type Q502895
[ANSWERS] are the life partner of that one
[{'concept': 'Q502895'}, 'P26', 'Q263791']
SELECT DISTINCT ?w WHERE { resource:Q263791 property:P26 ?w . ?w rdf:type ontology:Q502895 }
Khunais ibn Hudhaifa Muhammad
Khunais ibn Hudhaifa and Muhammad are the life partner of that one
Khunais ibn Hudhaifa Muhammad
action filter_type
action find
entity Hafsa bint Umar
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Hafsa bint Umar']
SELECT DISTINCT ?w WHERE { resource:Hafsa_bint_Umar property:spouse ?w . ?w rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q9458
P40
Q502895
USER
Which people have that one as an offspring ?
(c(Q502895),P40,Q9458)
action filter_type
action find_reverse
entity Q9458
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q9458']
SELECT DISTINCT ?d WHERE { ?d property:P40 resource:Q9458 . ?d rdf:type ontology:Q502895 }
Muhammad
action filter_type
action find_reverse
entity Muhammad
relation child
type common name
[{'concept': 'common name'}, 'child', 'Muhammad']
SELECT DISTINCT ?d WHERE { ?d property:child resource:Muhammad . ?d rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q9458
SYSTEM
Did you mean Muhammad ?
Q1108598 Q9458
(c(Q502895),P40,Q1108598) (c(Q502895),P40,Q9458)
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q1108598'] [{'concept': 'Q502895'}, 'P40', 'Q9458']
SELECT DISTINCT ?d WHERE { ?d property:P40 resource:Q9458 . ?d rdf:type ontology:Q502895 }
Khunais ibn Hudhaifa Muhammad
Did you mean Muhammad ?
Muhammad
[{'concept': 'common name'}, 'child', 'Khunais ibn Hudhaifa'] [{'concept': 'common name'}, 'child', 'Muhammad']
SELECT DISTINCT ?d WHERE { ?d property:child resource:Muhammad . ?d rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P40,Q9458)
[{'concept': 'Q502895'}, 'P40', 'Q9458']
[{'concept': 'common name'}, 'child', 'Muhammad']
[]
Q257935 Q288013 Q34408
SYSTEM
Aminah bint Wahb, As-Salih Salih, Abdullah ibn Abdul-Muttalib
Q257935 Q288013 Q34408
(c(Q502895),P40,Q9458)
action filter_type
action find_reverse
entity Q9458
relation P40
type Q502895
[ANSWERS] have that one as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q9458']
SELECT DISTINCT ?d WHERE { ?d property:P40 resource:Q9458 . ?d rdf:type ontology:Q502895 }
Aminah bint Wahb As-Salih Salih Abdullah ibn Abdul-Muttalib
Aminah bint Wahb, As-Salih Salih and Abdullah ibn Abdul-Muttalib have that one as an offspring
Aminah bint Wahb As-Salih Salih Abdullah ibn Abdul-Muttalib
action filter_type
action find_reverse
entity Muhammad
relation child
type common name
[{'concept': 'common name'}, 'child', 'Muhammad']
SELECT DISTINCT ?d WHERE { ?d property:child resource:Muhammad . ?d rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q9458
P26
Q502895
USER
How many people are the spouses of Muhammad ?
(Q9458,P26,c(Q502895))
action count
action filter_type
action find
entity Q9458
relation P26
type Q502895
['Q9458', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { resource:Q9458 property:P26 ?y . ?y rdf:type ontology:Q502895 }
Muhammad
action count
action filter_type
action find
entity Muhammad
relation spouse
type common name
['Muhammad', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { resource:Muhammad property:spouse ?y . ?y rdf:type ontology:common_name }
[]
common name
SYSTEM
13
Q144394 Q465845 Q144396 Q4730963 Q42034 Q3303021 Q2138599 Q1943555 Q263829 Q42104 Q263791 Q263779 Q3595927
(Q9458,P26,c(Q502895))
action count
action filter_type
action find
entity Q9458
relation P26
type Q502895
[ANSWER]
['Q9458', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { resource:Q9458 property:P26 ?y . ?y rdf:type ontology:Q502895 }
Zaynab bint Khuzayma Rayhana bint Zayd ibn ʿAmr Zaynab bint Jahsh Aisha Khadijah bint Khuwaylid Maymuna bint al-Harith Ramla bint Abi Sufyan Sawda bint Zamʿa Safiyya bint Huyayy Umm Salama Hind bint Abi Umayya Hafsa bint Umar Maria al-Qibtiyya Juwayriyya bint al-Harith
13
action count
action filter_type
action find
entity Muhammad
relation spouse
type common name
['Muhammad', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { resource:Muhammad property:spouse ?y . ?y rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6559461
P21
Q290
USER
Which sex does Maria Landi belong to ?
(Q6559461,P21,c(Q290))
action filter_type
action find
entity Q6559461
relation P21
type Q290
['Q6559461', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { resource:Q6559461 property:P21 ?y . ?y rdf:type ontology:Q290 }
Maria Landi
action filter_type
action find
entity Maria Landi
relation gender
type sex
['Maria Landi', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { resource:Maria_Landi property:gender ?y . ?y rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q6559461,P21,c(Q290))
action filter_type
action find
entity Q6559461
relation P21
type Q290
Maria Landi belongs to [ANSWER]
['Q6559461', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { resource:Q6559461 property:P21 ?y . ?y rdf:type ontology:Q290 }
female
Maria Landi belongs to female
female
action filter_type
action find
entity Maria Landi
relation gender
type sex
['Maria Landi', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { resource:Maria_Landi property:gender ?y . ?y rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6559461
P40
Q502895
USER
Which person is an offspring of that one ?
(Q6581072,P40,c(Q502895))
action filter_type
action find
entity Q6559461
relation P40
type Q502895
['Q6581072', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q6559461 property:P40 ?s . ?s rdf:type ontology:Q502895 }
Maria Landi
action filter_type
action find
entity Maria Landi
relation child
type common name
['female', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Maria_Landi property:child ?s . ?s rdf:type ontology:common_name }
[]
common name
Q474802
SYSTEM
Honoré II, Prince of Monaco
Q474802
(Q6581072,P40,c(Q502895))
action filter_type
action find
entity Q6559461
relation P40
type Q502895
[ANSWER] is an offspring of that one
['Q6581072', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q6559461 property:P40 ?s . ?s rdf:type ontology:Q502895 }
Honoré II, Prince of Monaco
Honoré II, Prince of Monaco is an offspring of that one
Honoré II, Prince of Monaco
action filter_type
action find
entity Maria Landi
relation child
type common name
['female', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Maria_Landi property:child ?s . ?s rdf:type ontology:common_name }
[]
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 exactly 2 people know to play ?
(c(Q502895),P1303,c(Q34379))
action count
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?j ) AS ?k ) WHERE { ?j property:P1303 ?o . ?o rdf:type ontology:Q34379 . ?j rdf:type ontology:Q502895 } GROUP BY ?o } . FILTER ( ?k = 2 ) }
action count
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?j ) AS ?k ) WHERE { ?j property:instrument ?o . ?o rdf:type ontology:musical_instrument . ?j rdf:type ontology:common_name } GROUP BY ?o } . FILTER ( ?k = 2 ) }
[]
musical instrument common name
SYSTEM
8
Q201129 Q424017 Q3574843 Q182718 Q862501 Q537750 Q1300012 Q483994
(c(Q502895),P1303,c(Q34379))
action count
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?j ) AS ?k ) WHERE { ?j property:P1303 ?o . ?o rdf:type ontology:Q34379 . ?j rdf:type ontology:Q502895 } GROUP BY ?o } . FILTER ( ?k = 2 ) }
lyre acoustic bass guitar tonbak Nyckelharpa ondes Martenot Djembe toy piano Kazoo
8
action count
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?j ) AS ?k ) WHERE { ?j property:instrument ?o . ?o rdf:type ontology:musical_instrument . ?j rdf:type ontology:common_name } GROUP BY ?o } . FILTER ( ?k = 2 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q257935
P25
Q502895
USER
Which people have Aminah bint Wahb as mother ?
(c(Q502895),P25,Q257935)
action filter_type
action find_reverse
entity Q257935
relation P25
type Q502895
[{'concept': 'Q502895'}, 'P25', 'Q257935']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . ?e property:P25 resource:Q257935 }
Aminah bint Wahb
action filter_type
action find_reverse
entity Aminah bint Wahb
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Aminah bint Wahb']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . ?e property:mother resource:Aminah_bint_Wahb }
[]
common name
Q6932888 Q9458
SYSTEM
Muhammad in Islam, Muhammad
Q6932888 Q9458
(c(Q502895),P25,Q257935)
action filter_type
action find_reverse
entity Q257935
relation P25
type Q502895
[ANSWERS] have Aminah bint Wahb as mother
[{'concept': 'Q502895'}, 'P25', 'Q257935']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . ?e property:P25 resource:Q257935 }
Muhammad in Islam Muhammad
Muhammad in Islam and Muhammad have Aminah bint Wahb as mother
Muhammad in Islam Muhammad
action filter_type
action find_reverse
entity Aminah bint Wahb
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Aminah bint Wahb']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . ?e property:mother resource:Aminah_bint_Wahb }
[]
Clarification
Simple Question|Single Entity|Indirect
Q9458
P140
Q2626870
USER
Which mental process does that person relate to ?
(Q9458,P140,c(Q2626870))
action filter_type
action find
entity Q9458
relation P140
type Q2626870
['Q9458', 'P140', {'concept': 'Q2626870'}]
SELECT DISTINCT ?s WHERE { resource:Q9458 property:P140 ?s . ?s rdf:type ontology:Q2626870 }
Muhammad
action filter_type
action find
entity Muhammad
relation religion
type mental process
['Muhammad', 'religion', {'concept': 'mental process'}]
SELECT DISTINCT ?s WHERE { resource:Muhammad property:religion ?s . ?s rdf:type ontology:mental_process }
[]
mental process
Clarification for simple ques.
Q9458
SYSTEM
Did you mean Muhammad ?
Q6932888 Q9458
(Q6932888,P140,c(Q2626870)) (Q9458,P140,c(Q2626870))
[ANSWER]
['Q6932888', 'P140', {'concept': 'Q2626870'}] ['Q9458', 'P140', {'concept': 'Q2626870'}]
SELECT DISTINCT ?s WHERE { resource:Q9458 property:P140 ?s . ?s rdf:type ontology:Q2626870 }
Muhammad in Islam Muhammad
Did you mean Muhammad ?
Muhammad
['Muhammad in Islam', 'religion', {'concept': 'mental process'}] ['Muhammad', 'religion', {'concept': 'mental process'}]
SELECT DISTINCT ?s WHERE { resource:Muhammad property:religion ?s . ?s rdf:type ontology:mental_process }
[]
Simple Question (Coreferenced)
USER
Yes
(Q9458,P140,c(Q2626870))
['Q9458', 'P140', {'concept': 'Q2626870'}]
['Muhammad', 'religion', {'concept': 'mental process'}]
[]
Q425381
SYSTEM
Hanif
Q425381
(Q9458,P140,c(Q2626870))
action filter_type
action find
entity Q9458
relation P140
type Q2626870
That person relates to [ANSWER]
['Q9458', 'P140', {'concept': 'Q2626870'}]
SELECT DISTINCT ?s WHERE { resource:Q9458 property:P140 ?s . ?s rdf:type ontology:Q2626870 }
Hanif
That person relates to Hanif
Hanif
action filter_type
action find
entity Muhammad
relation religion
type mental process
['Muhammad', 'religion', {'concept': 'mental process'}]
SELECT DISTINCT ?s WHERE { resource:Muhammad property:religion ?s . ?s rdf:type ontology:mental_process }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q34408
P7
Q502895
USER
Who are the brother of Abdullah ibn Abdul-Muttalib ?
(Q34408,P7,c(Q502895))
action filter_type
action find
entity Q34408
relation P7
type Q502895
['Q34408', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q34408 property:P7 ?y . ?y rdf:type ontology:Q502895 }
Abdullah ibn Abdul-Muttalib
action filter_type
action find
entity Abdullah ibn Abdul-Muttalib
relation brother
type common name
['Abdullah ibn Abdul-Muttalib', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Abdullah_ibn_Abdul-Muttalib property:brother ?y . ?y rdf:type ontology:common_name }
[]
common name
Q293599 Q770033 Q297913
SYSTEM
Abbas ibn Abd al-Muttalib, Hamza ibn ‘Abd al-Muttalib, Abu Talib ibn ‘Abd al-Muttalib
Q297913 Q293599 Q337012 Q770033 Q302272 Q4831972
(Q34408,P7,c(Q502895))
action filter_type
action find
entity Q34408
relation P7
type Q502895
The brother of Abdullah ibn Abdul-Muttalib are named [ANSWERS]
['Q34408', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q34408 property:P7 ?y . ?y rdf:type ontology:Q502895 }
Abu Talib ibn ‘Abd al-Muttalib Abbas ibn Abd al-Muttalib Abū Lahab Hamza ibn ‘Abd al-Muttalib Harith ibn ‘Abd al-Muttalib Az-Zubayr ibn ‘Abd al-Muttalib
The brother of Abdullah ibn Abdul-Muttalib are named Abbas ibn Abd al-Muttalib, Hamza ibn ‘Abd al-Muttalib and Abu Talib ibn ‘Abd al-Muttalib
Abbas ibn Abd al-Muttalib Hamza ibn ‘Abd al-Muttalib Abu Talib ibn ‘Abd al-Muttalib
action filter_type
action find
entity Abdullah ibn Abdul-Muttalib
relation brother
type common name
['Abdullah ibn Abdul-Muttalib', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Abdullah_ibn_Abdul-Muttalib property:brother ?y . ?y rdf:type ontology:common_name }
[]