Simple Question (Direct)
Simple Question
Q34408
P25
Q502895
USER
Who was the mom of Abdullah ibn Abdul-Muttalib ?
(Q34408,P25,c(Q502895))
action filter_type
action find
entity Q34408
relation P25
type Q502895
['Q34408', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q34408 property:P25 ?y . ?y rdf:type ontology:Q502895 }
Abdullah ibn Abdul-Muttalib
action filter_type
action find
entity Abdullah ibn Abdul-Muttalib
relation mother
type common name
['Abdullah ibn Abdul-Muttalib', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Abdullah_ibn_Abdul-Muttalib property:mother ?y . ?y rdf:type ontology:common_name }
[]
common name
Q5437878
SYSTEM
Fatimah bint Amr
Q5437878
(Q34408,P25,c(Q502895))
action filter_type
action find
entity Q34408
relation P25
type Q502895
The mom of Abdullah ibn Abdul-Muttalib was Queen [ANSWER]
['Q34408', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q34408 property:P25 ?y . ?y rdf:type ontology:Q502895 }
Fatimah bint Amr
The mom of Abdullah ibn Abdul-Muttalib was Queen Fatimah bint Amr
Fatimah bint Amr
action filter_type
action find
entity Abdullah ibn Abdul-Muttalib
relation mother
type common name
['Abdullah ibn Abdul-Muttalib', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Abdullah_ibn_Abdul-Muttalib property:mother ?y . ?y rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5437878
P26
Q502895
USER
Which person has that one as spouse ?
(c(Q502895),P26,Q5437878)
action filter_type
action find
entity Q5437878
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q5437878']
SELECT DISTINCT ?o WHERE { resource:Q5437878 property:P26 ?o . ?o rdf:type ontology:Q502895 }
Fatimah bint Amr
action filter_type
action find
entity Fatimah bint Amr
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Fatimah bint Amr']
SELECT DISTINCT ?o WHERE { resource:Fatimah_bint_Amr property:spouse ?o . ?o rdf:type ontology:common_name }
[]
common name
Q380479
SYSTEM
Abdul Muttalib
Q380479
(c(Q502895),P26,Q5437878)
action filter_type
action find
entity Q5437878
relation P26
type Q502895
[ANSWER] has that one as spouse
[{'concept': 'Q502895'}, 'P26', 'Q5437878']
SELECT DISTINCT ?o WHERE { resource:Q5437878 property:P26 ?o . ?o rdf:type ontology:Q502895 }
Abdul Muttalib
Abdul Muttalib has that one as spouse
Abdul Muttalib
action filter_type
action find
entity Fatimah bint Amr
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Fatimah bint Amr']
SELECT DISTINCT ?o WHERE { resource:Fatimah_bint_Amr property:spouse ?o . ?o rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q380479
P172
Q2472587
USER
Which peoples do that person have as ethnic origin ?
(Q380479,P172,c(Q2472587))
action filter_type
action find
entity Q380479
relation P172
type Q2472587
['Q380479', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?r WHERE { resource:Q380479 property:P172 ?r . ?r rdf:type ontology:Q2472587 }
Abdul Muttalib
action filter_type
action find
entity Abdul Muttalib
relation ethnic group
type people
['Abdul Muttalib', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?r WHERE { resource:Abdul_Muttalib property:ethnic_group ?r . ?r rdf:type ontology:people }
[]
people
Q485732 Q35323
SYSTEM
Quraysh, Arab
Q485732 Q35323
(Q380479,P172,c(Q2472587))
action filter_type
action find
entity Q380479
relation P172
type Q2472587
That person have as ethnic origin to [ANSWERS]
['Q380479', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?r WHERE { resource:Q380479 property:P172 ?r . ?r rdf:type ontology:Q2472587 }
Quraysh Arab
That person have as ethnic origin to Quraysh and Arab
Quraysh Arab
action filter_type
action find
entity Abdul Muttalib
relation ethnic group
type people
['Abdul Muttalib', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?r WHERE { resource:Abdul_Muttalib property:ethnic_group ?r . ?r rdf:type ontology:people }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q423600
P172
Q502895
USER
Do `Abd Allah ibn `Abbas have those peoples as ethnic group ?
(Q423600,P172,Q485732) (Q423600,P172,Q35323)
action is_in
entity prev_answer
action find
entity Q423600
relation P172
['Q423600', 'P172', 'Q485732'] ['Q423600', 'P172', 'Q35323']
ASK WHERE { resource:Q423600 property:P172 ?z . VALUES ( ?z ) { ( resource:Q485732 ) ( resource:Q35323 ) } }
`Abd Allah ibn `Abbas
action is_in
entity prev_answer
action find
entity `Abd Allah ibn `Abbas
relation ethnic group
['`Abd Allah ibn `Abbas', 'ethnic group', 'Quraysh'] ['`Abd Allah ibn `Abbas', 'ethnic group', 'Arab']
ASK WHERE { resource:`Abd_Allah_ibn_`Abbas property:ethnic_group ?z . VALUES ( ?z ) { ( resource:Quraysh ) ( resource:Arab ) } }
[]
common name
SYSTEM
YES
(Q423600,P172,Q485732) (Q423600,P172,Q35323)
action is_in
entity prev_answer
action find
entity Q423600
relation P172
[ANSWER]
['Q423600', 'P172', 'Q485732'] ['Q423600', 'P172', 'Q35323']
ASK WHERE { resource:Q423600 property:P172 ?z . VALUES ( ?z ) { ( resource:Q485732 ) ( resource:Q35323 ) } }
Yes
action is_in
entity prev_answer
action find
entity `Abd Allah ibn `Abbas
relation ethnic group
['`Abd Allah ibn `Abbas', 'ethnic group', 'Quraysh'] ['`Abd Allah ibn `Abbas', 'ethnic group', 'Arab']
ASK WHERE { resource:`Abd_Allah_ibn_`Abbas property:ethnic_group ?z . VALUES ( ?z ) { ( resource:Quraysh ) ( resource:Arab ) } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P3091
Q502895 Q3745054 Q502895
USER
Which people utilize exactly 3 people and horse breeds as steed ?
(c(Q502895),P3091,c(Q502895)|c(Q3745054))
action equal
action union
action find_tuple_counts
relation P3091
type Q502895
type Q502895
action find_tuple_counts
relation P3091
type Q502895
type Q3745054
value 3
[{'concept': 'Q502895'}, 'P3091', [{'concept': 'Q502895'}, {'concept': 'Q3745054'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) ?o WHERE { ?s rdf:type ?f . VALUES ( ?f ) { ( ontology:Q502895 ) ( ontology:Q3745054 ) } } GROUP BY ?o } . FILTER ( ?u = 3 ) }
action equal
action union
action find_tuple_counts
relation mount
type common name
type common name
action find_tuple_counts
relation mount
type common name
type horse breed
value 3
[{'concept': 'common name'}, 'mount', [{'concept': 'common name'}, {'concept': 'horse breed'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) ?o WHERE { ?s rdf:type ?f . VALUES ( ?f ) { ( ontology:common_name ) ( ontology:horse_breed ) } } GROUP BY ?o } . FILTER ( ?u = 3 ) }
[]
common name horse breed common name
Q2057115
SYSTEM
Patrice Delaveau
Q2057115
(c(Q502895),P3091,c(Q502895)|c(Q3745054))
action equal
action union
action find_tuple_counts
relation P3091
type Q502895
type Q502895
action find_tuple_counts
relation P3091
type Q502895
type Q3745054
value 3
[ANSWER] utilize exactly 3 people and horse breeds as steed
[{'concept': 'Q502895'}, 'P3091', [{'concept': 'Q502895'}, {'concept': 'Q3745054'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) ?o WHERE { ?s rdf:type ?f . VALUES ( ?f ) { ( ontology:Q502895 ) ( ontology:Q3745054 ) } } GROUP BY ?o } . FILTER ( ?u = 3 ) }
Patrice Delaveau
Patrice Delaveau utilize exactly 3 people and horse breeds as steed
Patrice Delaveau
action equal
action union
action find_tuple_counts
relation mount
type common name
type common name
action find_tuple_counts
relation mount
type common name
type horse breed
value 3
[{'concept': 'common name'}, 'mount', [{'concept': 'common name'}, {'concept': 'horse breed'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) ?o WHERE { ?s rdf:type ?f . VALUES ( ?f ) { ( ontology:common_name ) ( ontology:horse_breed ) } } GROUP BY ?o } . FILTER ( ?u = 3 ) }
[]