Simple Question (Direct)
Simple Question
Q826362
P21
Q290
USER
What is the sex of Siniša Martinović ?
(Q826362,P21,c(Q290))
action filter_type
action find
entity Q826362
relation P21
type Q290
['Q826362', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q290 . resource:Q826362 property:P21 ?l }
Siniša Martinović
action filter_type
action find
entity Siniša Martinović
relation gender
type sex
['Siniša Martinović', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:sex . resource:Siniša_Martinović property:gender ?l }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q826362,P21,c(Q290))
action filter_type
action find
entity Q826362
relation P21
type Q290
The sex of Siniša Martinović is the [ANSWER]
['Q826362', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q290 . resource:Q826362 property:P21 ?l }
male
The sex of Siniša Martinović is the male
male
action filter_type
action find
entity Siniša Martinović
relation gender
type sex
['Siniša Martinović', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:sex . resource:Siniša_Martinović property:gender ?l }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1441
Q2342494 Q234460 Q502895
USER
Which people appear in atleast 4 collectables or texts ?
(c(Q502895),P1441,c(Q2342494)|c(Q234460))
action atleast
action union
action find_tuple_counts
relation P1441
type Q502895
type Q2342494
action find_tuple_counts
relation P1441
type Q502895
type Q234460
value 4
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q2342494'}, {'concept': 'Q234460'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?p WHERE { ?e rdf:type ?f . VALUES ( ?f ) { ( ontology:Q2342494 ) ( ontology:Q234460 ) } } GROUP BY ?p } . FILTER ( ?d >= 4 ) }
action atleast
action union
action find_tuple_counts
relation present in work
type common name
type collectable
action find_tuple_counts
relation present in work
type common name
type text
value 4
[{'concept': 'common name'}, 'present in work', [{'concept': 'collectable'}, {'concept': 'text'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?p WHERE { ?e rdf:type ?f . VALUES ( ?f ) { ( ontology:collectable ) ( ontology:text ) } } GROUP BY ?p } . FILTER ( ?d >= 4 ) }
[]
collectable text common name
Q41370 Q9181
SYSTEM
David, Abraham
Q41370 Q9181
(c(Q502895),P1441,c(Q2342494)|c(Q234460))
action atleast
action union
action find_tuple_counts
relation P1441
type Q502895
type Q2342494
action find_tuple_counts
relation P1441
type Q502895
type Q234460
value 4
[ANSWERS] appear in atleast 4 collectables or texts
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q2342494'}, {'concept': 'Q234460'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?p WHERE { ?e rdf:type ?f . VALUES ( ?f ) { ( ontology:Q2342494 ) ( ontology:Q234460 ) } } GROUP BY ?p } . FILTER ( ?d >= 4 ) }
David Abraham
David and Abraham appear in atleast 4 collectables or texts
David Abraham
action atleast
action union
action find_tuple_counts
relation present in work
type common name
type collectable
action find_tuple_counts
relation present in work
type common name
type text
value 4
[{'concept': 'common name'}, 'present in work', [{'concept': 'collectable'}, {'concept': 'text'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?p WHERE { ?e rdf:type ?f . VALUES ( ?f ) { ( ontology:collectable ) ( ontology:text ) } } GROUP BY ?p } . FILTER ( ?d >= 4 ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q41370 Q9181
P40
Q502895
USER
Who are an offsprings of those ones ?
(Q41370,P40,c(Q502895)) (Q9181,P40,c(Q502895))
action filter_type
action find
entity prev_answer
relation P40
type Q502895
['Q41370', 'P40', {'concept': 'Q502895'}] ['Q9181', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . ?j property:P40 ?l . VALUES ( ?j ) { ( resource:Q41370 ) ( resource:Q9181 ) } }
David Abraham
action filter_type
action find
entity prev_answer
relation child
type common name
['David', 'child', {'concept': 'common name'}] ['Abraham', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . ?j property:child ?l . VALUES ( ?j ) { ( resource:David ) ( resource:Abraham ) } }
[]
common name
Q37085 Q671872 Q205372
SYSTEM
Solomon, Isaac, Absalom
Q205372 Q37085 Q2418113 Q361636 Q2917173 Q360378 Q3437128 Q1212757 Q369850 Q671872
(Q41370,P40,c(Q502895)) (Q9181,P40,c(Q502895))
action filter_type
action find
entity prev_answer
relation P40
type Q502895
An offsprings of those ones are [ANSWERS]
['Q41370', 'P40', {'concept': 'Q502895'}] ['Q9181', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . ?j property:P40 ?l . VALUES ( ?j ) { ( resource:Q41370 ) ( resource:Q9181 ) } }
Absalom Solomon Chileab Amnon Tamar Adonijah Nathan Medan Shuah Isaac
An offsprings of those ones are Solomon, Isaac and Absalom
Solomon Isaac Absalom
action filter_type
action find
entity prev_answer
relation child
type common name
['David', 'child', {'concept': 'common name'}] ['Abraham', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . ?j property:child ?l . VALUES ( ?j ) { ( resource:David ) ( resource:Abraham ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q37085 Q671872 Q205372
P22
Q502895
USER
Which people were the father of Solomon, Isaac and Absalom ?
(Q37085,P22,c(Q502895)) (Q671872,P22,c(Q502895)) (Q205372,P22,c(Q502895))
action union
action filter_type
action find
entity Q37085
relation P22
type Q502895
action filter_type
action find
entity Q671872
relation P22
type Q502895
action filter_type
action find
entity Q205372
relation P22
type Q502895
['Q37085', 'P22', {'concept': 'Q502895'}] ['Q671872', 'P22', {'concept': 'Q502895'}] ['Q205372', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { { ?a rdf:type ontology:Q502895 . resource:Q37085 property:P22 ?a } UNION { resource:Q671872 property:P22 ?a . ?a rdf:type ontology:Q502895 } }
Solomon Isaac Absalom
action union
action filter_type
action find
entity Solomon
relation father
type common name
action filter_type
action find
entity Isaac
relation father
type common name
action filter_type
action find
entity Absalom
relation father
type common name
['Solomon', 'father', {'concept': 'common name'}] ['Isaac', 'father', {'concept': 'common name'}] ['Absalom', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { { ?a rdf:type ontology:common_name . resource:Solomon property:father ?a } UNION { resource:Isaac property:father ?a . ?a rdf:type ontology:common_name } }
[]
common name
Q41370 Q9181 Q41370
SYSTEM
David for 1st, 3rd, Abraham for 2nd
Q41370 Q9181 Q41370
(Q37085,P22,c(Q502895)) (Q671872,P22,c(Q502895)) (Q205372,P22,c(Q502895))
action union
action filter_type
action find
entity Q37085
relation P22
type Q502895
action filter_type
action find
entity Q671872
relation P22
type Q502895
action filter_type
action find
entity Q205372
relation P22
type Q502895
[ANSWERS]
['Q37085', 'P22', {'concept': 'Q502895'}] ['Q671872', 'P22', {'concept': 'Q502895'}] ['Q205372', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { { ?a rdf:type ontology:Q502895 . resource:Q37085 property:P22 ?a } UNION { resource:Q671872 property:P22 ?a . ?a rdf:type ontology:Q502895 } }
David Abraham David
David, Abraham and David were the father of Solomon, Isaac and Absalom
David Abraham David
action union
action filter_type
action find
entity Solomon
relation father
type common name
action filter_type
action find
entity Isaac
relation father
type common name
action filter_type
action find
entity Absalom
relation father
type common name
['Solomon', 'father', {'concept': 'common name'}] ['Isaac', 'father', {'concept': 'common name'}] ['Absalom', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { { ?a rdf:type ontology:common_name . resource:Solomon property:father ?a } UNION { resource:Isaac property:father ?a . ?a rdf:type ontology:common_name } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q41370
P157
Q502895
USER
Which person was killed by that one ?
(c(Q502895),P157,Q41370)
action filter_type
action find_reverse
entity Q41370
relation P157
type Q502895
[{'concept': 'Q502895'}, 'P157', 'Q41370']
SELECT DISTINCT ?c WHERE { ?c property:P157 resource:Q41370 . ?c rdf:type ontology:Q502895 }
David
action filter_type
action find_reverse
entity David
relation killed by
type common name
[{'concept': 'common name'}, 'killed by', 'David']
SELECT DISTINCT ?c WHERE { ?c property:killed_by resource:David . ?c rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q9181
SYSTEM
Did you mean Abraham ?
Q41370 Q9181 Q41370
(c(Q502895),P157,Q41370) (c(Q502895),P157,Q9181) (c(Q502895),P157,Q41370)
[ANSWER]
[{'concept': 'Q502895'}, 'P157', 'Q41370'] [{'concept': 'Q502895'}, 'P157', 'Q9181'] [{'concept': 'Q502895'}, 'P157', 'Q41370']
SELECT DISTINCT ?c WHERE { ?c property:P157 resource:Q41370 . ?c rdf:type ontology:Q502895 }
David Abraham David
Did you mean Abraham ?
Abraham
[{'concept': 'common name'}, 'killed by', 'David'] [{'concept': 'common name'}, 'killed by', 'Abraham'] [{'concept': 'common name'}, 'killed by', 'David']
SELECT DISTINCT ?c WHERE { ?c property:killed_by resource:David . ?c rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant David. Could you tell me the answer for that?
(c(Q502895),P157,Q41370)
Q41370
[{'concept': 'Q502895'}, 'P157', 'Q41370']
[{'concept': 'common name'}, 'killed by', 'David']
[]
Q192785
SYSTEM
Goliath
Q192785
(c(Q502895),P157,Q41370)
action filter_type
action find_reverse
entity Q41370
relation P157
type Q502895
[ANSWER] was killed by that one
[{'concept': 'Q502895'}, 'P157', 'Q41370']
SELECT DISTINCT ?c WHERE { ?c property:P157 resource:Q41370 . ?c rdf:type ontology:Q502895 }
Goliath
Goliath was killed by that one
Goliath
action filter_type
action find_reverse
entity David
relation killed by
type common name
[{'concept': 'common name'}, 'killed by', 'David']
SELECT DISTINCT ?c WHERE { ?c property:killed_by resource:David . ?c rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q192785
P180
Q3305213
USER
Which painting demonstrates that person ?
(c(Q3305213),P180,Q192785)
action filter_type
action find_reverse
entity Q192785
relation P180
type Q3305213
[{'concept': 'Q3305213'}, 'P180', 'Q192785']
SELECT DISTINCT ?v WHERE { ?v property:P180 resource:Q192785 . ?v rdf:type ontology:Q3305213 }
Goliath
action filter_type
action find_reverse
entity Goliath
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'Goliath']
SELECT DISTINCT ?v WHERE { ?v property:depicts resource:Goliath . ?v rdf:type ontology:painting }
[]
painting
Q23688164
SYSTEM
Goliath cursing David
Q23688164
(c(Q3305213),P180,Q192785)
action filter_type
action find_reverse
entity Q192785
relation P180
type Q3305213
[ANSWER] demonstrates that person
[{'concept': 'Q3305213'}, 'P180', 'Q192785']
SELECT DISTINCT ?v WHERE { ?v property:P180 resource:Q192785 . ?v rdf:type ontology:Q3305213 }
Goliath cursing David
Goliath cursing David demonstrates that person
Goliath cursing David
action filter_type
action find_reverse
entity Goliath
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'Goliath']
SELECT DISTINCT ?v WHERE { ?v property:depicts resource:Goliath . ?v rdf:type ontology:painting }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q41370
P180
Q335261 Q11060274
USER
How many ornaments or prints express David ?
(c(Q335261),P180,Q41370) (c(Q11060274),P180,Q41370)
action count
action union
action filter_type
action find_reverse
entity Q41370
relation P180
type Q335261
action filter_type
action find_reverse
entity Q41370
relation P180
type Q11060274
[{'concept': 'Q335261'}, 'P180', 'Q41370'] [{'concept': 'Q11060274'}, 'P180', 'Q41370']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z rdf:type ?n . VALUES ( ?n ) { ( ontology:Q335261 ) ( ontology:Q11060274 ) } }
David
action count
action union
action filter_type
action find_reverse
entity David
relation depicts
type ornament
action filter_type
action find_reverse
entity David
relation depicts
type print
[{'concept': 'ornament'}, 'depicts', 'David'] [{'concept': 'print'}, 'depicts', 'David']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z rdf:type ?n . VALUES ( ?n ) { ( ontology:ornament ) ( ontology:print ) } }
[]
ornament print
SYSTEM
2
Q19291396 Q18339657
(c(Q335261),P180,Q41370) (c(Q11060274),P180,Q41370)
action count
action union
action filter_type
action find_reverse
entity Q41370
relation P180
type Q335261
action filter_type
action find_reverse
entity Q41370
relation P180
type Q11060274
[ANSWER]
[{'concept': 'Q335261'}, 'P180', 'Q41370'] [{'concept': 'Q11060274'}, 'P180', 'Q41370']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z rdf:type ?n . VALUES ( ?n ) { ( ontology:Q335261 ) ( ontology:Q11060274 ) } }
David as one of the Nine Worthies King David does repentance
2
action count
action union
action filter_type
action find_reverse
entity David
relation depicts
type ornament
action filter_type
action find_reverse
entity David
relation depicts
type print
[{'concept': 'ornament'}, 'depicts', 'David'] [{'concept': 'print'}, 'depicts', 'David']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z rdf:type ?n . VALUES ( ?n ) { ( ontology:ornament ) ( ontology:print ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q41370
P26
Q502895
USER
How many people are married to David ?
(Q41370,P26,c(Q502895))
action count
action filter_type
action find
entity Q41370
relation P26
type Q502895
['Q41370', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { resource:Q41370 property:P26 ?k . ?k rdf:type ontology:Q502895 }
David
action count
action filter_type
action find
entity David
relation spouse
type common name
['David', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { resource:David property:spouse ?k . ?k rdf:type ontology:common_name }
[]
common name
SYSTEM
3
Q272277 Q1341397 Q5638717
(Q41370,P26,c(Q502895))
action count
action filter_type
action find
entity Q41370
relation P26
type Q502895
[ANSWER]
['Q41370', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { resource:Q41370 property:P26 ?k . ?k rdf:type ontology:Q502895 }
Bathsheba Michal Haggith
3
action count
action filter_type
action find
entity David
relation spouse
type common name
['David', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { resource:David property:spouse ?k . ?k rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q41370
P1066
Q502895
USER
Which person is a pupil of that one ?
action filter_type
action find_reverse
entity Q41370
relation P1066
type Q502895
SELECT DISTINCT ?d WHERE { ?d property:P1066 resource:Q41370 . ?d rdf:type ontology:Q502895 }
David
action filter_type
action find_reverse
entity David
relation student of
type common name
SELECT DISTINCT ?d WHERE { ?d property:student_of resource:David . ?d rdf:type ontology:common_name }
[]
common name
Q2590260
SYSTEM
Ahijah the Shilonite
Q2590260
action filter_type
action find_reverse
entity Q41370
relation P1066
type Q502895
[ANSWER] is a pupil of that one
SELECT DISTINCT ?d WHERE { ?d property:P1066 resource:Q41370 . ?d rdf:type ontology:Q502895 }
Ahijah the Shilonite
Ahijah the Shilonite is a pupil of that one
Ahijah the Shilonite
action filter_type
action find_reverse
entity David
relation student of
type common name
SELECT DISTINCT ?d WHERE { ?d property:student_of resource:David . ?d rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q37085
P25
Q502895
USER
How many people were the mom of Solomon ?
(Q37085,P25,c(Q502895))
action count
action filter_type
action find
entity Q37085
relation P25
type Q502895
['Q37085', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { resource:Q37085 property:P25 ?m . ?m rdf:type ontology:Q502895 }
Solomon
action count
action filter_type
action find
entity Solomon
relation mother
type common name
['Solomon', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { resource:Solomon property:mother ?m . ?m rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q272277
(Q37085,P25,c(Q502895))
action count
action filter_type
action find
entity Q37085
relation P25
type Q502895
[ANSWER]
['Q37085', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { resource:Q37085 property:P25 ?m . ?m rdf:type ontology:Q502895 }
Bathsheba
1
action count
action filter_type
action find
entity Solomon
relation mother
type common name
['Solomon', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { resource:Solomon property:mother ?m . ?m rdf:type ontology:common_name }
[]