Simple Question (Direct)
Simple Question
Q11413002
P734
Q82799
USER
Who has the surname Fumio Yoshikawa ?
(Q11413002,P734,c(Q82799))
action filter_type
action find
entity Q11413002
relation P734
type Q82799
['Q11413002', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { resource:Q11413002 property:P734 ?d . ?d rdf:type ontology:Q82799 }
Fumio Yoshikawa
action filter_type
action find
entity Fumio Yoshikawa
relation family name
type name
['Fumio Yoshikawa', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { resource:Fumio_Yoshikawa property:family_name ?d . ?d rdf:type ontology:name }
[]
name
Q21488338
SYSTEM
Yoshikawa
Q21488338
(Q11413002,P734,c(Q82799))
action filter_type
action find
entity Q11413002
relation P734
type Q82799
To [ANSWER] has the surname Fumio [ANSWER]
['Q11413002', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { resource:Q11413002 property:P734 ?d . ?d rdf:type ontology:Q82799 }
Yoshikawa
To Yoshikawa has the surname Fumio Yoshikawa
Yoshikawa
action filter_type
action find
entity Fumio Yoshikawa
relation family name
type name
['Fumio Yoshikawa', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { resource:Fumio_Yoshikawa property:family_name ?d . ?d rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11413002
P19
Q56061
USER
Which administrative territory was Fumio Yoshikawa born at ?
(Q11413002,P19,c(Q56061))
action filter_type
action find
entity Q11413002
relation P19
type Q56061
['Q11413002', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q11413002 property:P19 ?q . ?q rdf:type ontology:Q56061 }
Fumio Yoshikawa
action filter_type
action find
entity Fumio Yoshikawa
relation place of birth
type administrative territorial entity
['Fumio Yoshikawa', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Fumio_Yoshikawa property:place_of_birth ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1490
SYSTEM
Tokyo
Q1490
(Q11413002,P19,c(Q56061))
action filter_type
action find
entity Q11413002
relation P19
type Q56061
Fumio Yoshikawa was born in [ANSWER]
['Q11413002', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q11413002 property:P19 ?q . ?q rdf:type ontology:Q56061 }
Tokyo
Fumio Yoshikawa was born in Tokyo
Tokyo
action filter_type
action find
entity Fumio Yoshikawa
relation place of birth
type administrative territorial entity
['Fumio Yoshikawa', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Fumio_Yoshikawa property:place_of_birth ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1388998
Q56061
USER
And also tell me about Naji Talib?
(Q1388998,P19,c(Q56061))
action filter_type
action find
entity Q1388998
relation P19
type Q56061
['Q1388998', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q1388998 property:P19 ?y . ?y rdf:type ontology:Q56061 }
Naji Talib
action filter_type
action find
entity Naji Talib
relation place of birth
type administrative territorial entity
['Naji Talib', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Naji_Talib property:place_of_birth ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q38811
SYSTEM
Nasiriyah
Q38811
(Q1388998,P19,c(Q56061))
action filter_type
action find
entity Q1388998
relation P19
type Q56061
[ANSWER]
['Q1388998', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q1388998 property:P19 ?y . ?y rdf:type ontology:Q56061 }
Nasiriyah
Nasiriyah
action filter_type
action find
entity Naji Talib
relation place of birth
type administrative territorial entity
['Naji Talib', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Naji_Talib property:place_of_birth ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q38811 Q7210472
P17
Q15617994
USER
Is that administrative territory present in Kabo, Nigeria ?
(Q38811,P17,Q7210472)
action is_in
entity Q7210472
action find
entity Q38811
relation P17
['Q38811', 'P17', 'Q7210472']
ASK WHERE { resource:Q38811 property:P17 resource:Q7210472 }
Nasiriyah Kabo, Nigeria
action is_in
entity Kabo, Nigeria
action find
entity Nasiriyah
relation country
['Nasiriyah', 'country', 'Kabo, Nigeria']
ASK WHERE { resource:Nasiriyah property:country resource:Kabo,_Nigeria }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q38811,P17,Q7210472)
action is_in
entity Q7210472
action find
entity Q38811
relation P17
[ANSWER]
['Q38811', 'P17', 'Q7210472']
ASK WHERE { resource:Q38811 property:P17 resource:Q7210472 }
No
action is_in
entity Kabo, Nigeria
action find
entity Nasiriyah
relation country
['Nasiriyah', 'country', 'Kabo, Nigeria']
ASK WHERE { resource:Nasiriyah property:country resource:Kabo,_Nigeria }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1441
Q15416 Q838948 Q502895
USER
Which people appear in max number of television programs or works of art ?
(c(Q502895),P1441,c(Q15416)|c(Q838948))
action argmax
action union
action find_tuple_counts
relation P1441
type Q502895
type Q15416
action find_tuple_counts
relation P1441
type Q502895
type Q838948
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q15416'}, {'concept': 'Q838948'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?f ) { SELECT DISTINCT ?u ( COUNT ( ?k ) AS ?z ) WHERE { { ?u rdf:type ontology:Q502895 . ?k rdf:type ontology:Q15416 . ?u property:P1441 ?k } UNION { ?u property:P1441 ?k . ?u rdf:type ontology:Q502895 . ?k rdf:type ontology:Q838948 } } GROUP BY ?u } } . { SELECT DISTINCT ?p ( COUNT ( ?c ) AS ?o ) WHERE { { ?p property:P1441 ?c . ?c rdf:type ontology:Q838948 . ?p rdf:type ontology:Q502895 } UNION { ?p rdf:type ontology:Q502895 . ?c rdf:type ontology:Q15416 . ?p property:P1441 ?c } } GROUP BY ?p } . FILTER ( ?o = ?f ) }
action argmax
action union
action find_tuple_counts
relation present in work
type common name
type television program
action find_tuple_counts
relation present in work
type common name
type work of art
[{'concept': 'common name'}, 'present in work', [{'concept': 'television program'}, {'concept': 'work of art'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?f ) { SELECT DISTINCT ?u ( COUNT ( ?k ) AS ?z ) WHERE { { ?u rdf:type ontology:common_name . ?k rdf:type ontology:television_program . ?u property:present_in_work ?k } UNION { ?u property:present_in_work ?k . ?u rdf:type ontology:common_name . ?k rdf:type ontology:work_of_art } } GROUP BY ?u } } . { SELECT DISTINCT ?p ( COUNT ( ?c ) AS ?o ) WHERE { { ?p property:present_in_work ?c . ?c rdf:type ontology:work_of_art . ?p rdf:type ontology:common_name } UNION { ?p rdf:type ontology:common_name . ?c rdf:type ontology:television_program . ?p property:present_in_work ?c } } GROUP BY ?p } . FILTER ( ?o = ?f ) }
[]
television program work of art common name
Q9077
SYSTEM
Moses
Q9077
(c(Q502895),P1441,c(Q15416)|c(Q838948))
action argmax
action union
action find_tuple_counts
relation P1441
type Q502895
type Q15416
action find_tuple_counts
relation P1441
type Q502895
type Q838948
[ANSWER] appear in max number of television programs or works of art
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q15416'}, {'concept': 'Q838948'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?f ) { SELECT DISTINCT ?u ( COUNT ( ?k ) AS ?z ) WHERE { { ?u rdf:type ontology:Q502895 . ?k rdf:type ontology:Q15416 . ?u property:P1441 ?k } UNION { ?u property:P1441 ?k . ?u rdf:type ontology:Q502895 . ?k rdf:type ontology:Q838948 } } GROUP BY ?u } } . { SELECT DISTINCT ?p ( COUNT ( ?c ) AS ?o ) WHERE { { ?p property:P1441 ?c . ?c rdf:type ontology:Q838948 . ?p rdf:type ontology:Q502895 } UNION { ?p rdf:type ontology:Q502895 . ?c rdf:type ontology:Q15416 . ?p property:P1441 ?c } } GROUP BY ?p } . FILTER ( ?o = ?f ) }
Moses
Moses appear in max number of television programs or works of art
Moses
action argmax
action union
action find_tuple_counts
relation present in work
type common name
type television program
action find_tuple_counts
relation present in work
type common name
type work of art
[{'concept': 'common name'}, 'present in work', [{'concept': 'television program'}, {'concept': 'work of art'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?f ) { SELECT DISTINCT ?u ( COUNT ( ?k ) AS ?z ) WHERE { { ?u rdf:type ontology:common_name . ?k rdf:type ontology:television_program . ?u property:present_in_work ?k } UNION { ?u property:present_in_work ?k . ?u rdf:type ontology:common_name . ?k rdf:type ontology:work_of_art } } GROUP BY ?u } } . { SELECT DISTINCT ?p ( COUNT ( ?c ) AS ?o ) WHERE { { ?p property:present_in_work ?c . ?c rdf:type ontology:work_of_art . ?p rdf:type ontology:common_name } UNION { ?p rdf:type ontology:common_name . ?c rdf:type ontology:television_program . ?p property:present_in_work ?c } } GROUP BY ?p } . FILTER ( ?o = ?f ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P941
Q502895 Q3305213 Q7725634
USER
Which people were greater number of paintings or literary works inspired by than that person ?
(c(Q3305213)|c(Q7725634),P941,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q3305213
action find_reverse_tuple_counts
relation P941
type Q502895
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q9077
relation P941
type Q3305213
type Q7725634
[[{'concept': 'Q3305213'}, {'concept': 'Q7725634'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) ?h WHERE { ?p rdf:type ?x . VALUES ( ?x ) { ( ontology:Q3305213 ) ( ontology:Q7725634 ) } } GROUP BY ?h } . FILTER ( ?d > ?k ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { ?m property:P941 resource:Q9077 . { { ?m rdf:type ontology:Q7725634 } UNION { ?m rdf:type ontology:Q3305213 } } } } }
action greater
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type painting
action find_reverse_tuple_counts
relation inspired by
type common name
type literary work
action count
action filter_multi_types
action find_reverse
entity Moses
relation inspired by
type painting
type literary work
[[{'concept': 'painting'}, {'concept': 'literary work'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) ?h WHERE { ?p rdf:type ?x . VALUES ( ?x ) { ( ontology:painting ) ( ontology:literary_work ) } } GROUP BY ?h } . FILTER ( ?d > ?k ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { ?m property:inspired_by resource:Moses . { { ?m rdf:type ontology:literary_work } UNION { ?m rdf:type ontology:painting } } } } }
[]
common name painting literary work
Q164823 Q273079 Q2836532
SYSTEM
Girolamo Savonarola, Cab Calloway, Alice Ayres
Q164823 Q273079 Q2836532
(c(Q3305213)|c(Q7725634),P941,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q3305213
action find_reverse_tuple_counts
relation P941
type Q502895
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q9077
relation P941
type Q3305213
type Q7725634
[ANSWERS] were greater number of paintings or literary works inspired by than that person
[[{'concept': 'Q3305213'}, {'concept': 'Q7725634'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) ?h WHERE { ?p rdf:type ?x . VALUES ( ?x ) { ( ontology:Q3305213 ) ( ontology:Q7725634 ) } } GROUP BY ?h } . FILTER ( ?d > ?k ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { ?m property:P941 resource:Q9077 . { { ?m rdf:type ontology:Q7725634 } UNION { ?m rdf:type ontology:Q3305213 } } } } }
Girolamo Savonarola Cab Calloway Alice Ayres
Girolamo Savonarola, Cab Calloway and Alice Ayres were greater number of paintings or literary works inspired by than that person
Girolamo Savonarola Cab Calloway Alice Ayres
action greater
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type painting
action find_reverse_tuple_counts
relation inspired by
type common name
type literary work
action count
action filter_multi_types
action find_reverse
entity Moses
relation inspired by
type painting
type literary work
[[{'concept': 'painting'}, {'concept': 'literary work'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) ?h WHERE { ?p rdf:type ?x . VALUES ( ?x ) { ( ontology:painting ) ( ontology:literary_work ) } } GROUP BY ?h } . FILTER ( ?d > ?k ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { ?m property:inspired_by resource:Moses . { { ?m rdf:type ontology:literary_work } UNION { ?m rdf:type ontology:painting } } } } }
[]