Simple Question (Direct)
Simple Question
Q1194218
P734
Q82799
USER
Who has the surname Natsumi Matsubara ?
(Q1194218,P734,c(Q82799))
action filter_type
action find
entity Q1194218
relation P734
type Q82799
['Q1194218', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?z WHERE { resource:Q1194218 property:P734 ?z . ?z rdf:type ontology:Q82799 }
Natsumi Matsubara
action filter_type
action find
entity Natsumi Matsubara
relation family name
type name
['Natsumi Matsubara', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?z WHERE { resource:Natsumi_Matsubara property:family_name ?z . ?z rdf:type ontology:name }
[]
name
Q1909090
SYSTEM
Matsubara
Q1909090
(Q1194218,P734,c(Q82799))
action filter_type
action find
entity Q1194218
relation P734
type Q82799
[ANSWER] has the surname Natsumi [ANSWER]
['Q1194218', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?z WHERE { resource:Q1194218 property:P734 ?z . ?z rdf:type ontology:Q82799 }
Matsubara
Matsubara has the surname Natsumi Matsubara
Matsubara
action filter_type
action find
entity Natsumi Matsubara
relation family name
type name
['Natsumi Matsubara', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?z WHERE { resource:Natsumi_Matsubara property:family_name ?z . ?z rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1194218
P27
Q15617994
USER
Which administrative territory does that person belong to ?
(Q1909090,P27,c(Q15617994))
action filter_type
action find
entity Q1194218
relation P27
type Q15617994
['Q1909090', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q1194218 property:P27 ?i . ?i rdf:type ontology:Q15617994 }
Natsumi Matsubara
action filter_type
action find
entity Natsumi Matsubara
relation country of citizenship
type designation for an administrative territorial entity
['Matsubara', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Natsumi_Matsubara property:country_of_citizenship ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17
SYSTEM
Japan
Q17
(Q1909090,P27,c(Q15617994))
action filter_type
action find
entity Q1194218
relation P27
type Q15617994
That person belongs to the [ANSWER]
['Q1909090', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q1194218 property:P27 ?i . ?i rdf:type ontology:Q15617994 }
Japan
That person belongs to the Japan
Japan
action filter_type
action find
entity Natsumi Matsubara
relation country of citizenship
type designation for an administrative territorial entity
['Matsubara', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Natsumi_Matsubara property:country_of_citizenship ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q17 Q3782468
P27
Q502895
USER
Is Hajime Isayama a native of that administrative territory ?
(Q3782468,P27,Q17)
action is_in
entity Q17
action find
entity Q3782468
relation P27
['Q3782468', 'P27', 'Q17']
ASK WHERE { resource:Q3782468 property:P27 resource:Q17 }
Japan Hajime Isayama
action is_in
entity Japan
action find
entity Hajime Isayama
relation country of citizenship
['Hajime Isayama', 'country of citizenship', 'Japan']
ASK WHERE { resource:Hajime_Isayama property:country_of_citizenship resource:Japan }
[]
common name
SYSTEM
YES
(Q3782468,P27,Q17)
action is_in
entity Q17
action find
entity Q3782468
relation P27
[ANSWER]
['Q3782468', 'P27', 'Q17']
ASK WHERE { resource:Q3782468 property:P27 resource:Q17 }
Yes
action is_in
entity Japan
action find
entity Hajime Isayama
relation country of citizenship
['Hajime Isayama', 'country of citizenship', 'Japan']
ASK WHERE { resource:Hajime_Isayama property:country_of_citizenship resource:Japan }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1194218 Q33999
P106
Q12737077
USER
Is actor the profession of Natsumi Matsubara ?
(Q1194218,P106,Q33999)
action is_in
entity Q33999
action find
entity Q1194218
relation P106
['Q1194218', 'P106', 'Q33999']
ASK WHERE { resource:Q1194218 property:P106 resource:Q33999 }
Natsumi Matsubara actor
action is_in
entity actor
action find
entity Natsumi Matsubara
relation occupation
['Natsumi Matsubara', 'occupation', 'actor']
ASK WHERE { resource:Natsumi_Matsubara property:occupation resource:actor }
[]
occupation
SYSTEM
YES
(Q1194218,P106,Q33999)
action is_in
entity Q33999
action find
entity Q1194218
relation P106
[ANSWER]
['Q1194218', 'P106', 'Q33999']
ASK WHERE { resource:Q1194218 property:P106 resource:Q33999 }
Yes
action is_in
entity actor
action find
entity Natsumi Matsubara
relation occupation
['Natsumi Matsubara', 'occupation', 'actor']
ASK WHERE { resource:Natsumi_Matsubara property:occupation resource:actor }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1194218
P264
Q334453
USER
Which division is the record label of that person ?
action filter_type
action find
entity Q1194218
relation P264
type Q334453
SELECT DISTINCT ?w WHERE { resource:Q1194218 property:P264 ?w . ?w rdf:type ontology:Q334453 }
Natsumi Matsubara
action filter_type
action find
entity Natsumi Matsubara
relation record label
type division
SELECT DISTINCT ?w WHERE { resource:Natsumi_Matsubara property:record_label ?w . ?w rdf:type ontology:division }
[]
division
Q1328605
SYSTEM
King Records
Q1328605
action filter_type
action find
entity Q1194218
relation P264
type Q334453
Records [ANSWER] is the record label of that person
SELECT DISTINCT ?w WHERE { resource:Q1194218 property:P264 ?w . ?w rdf:type ontology:Q334453 }
King Records
Records King Records is the record label of that person
King Records
action filter_type
action find
entity Natsumi Matsubara
relation record label
type division
SELECT DISTINCT ?w WHERE { resource:Natsumi_Matsubara property:record_label ?w . ?w rdf:type ontology:division }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P206
Q15324 Q1267889 Q15617994
USER
Which administrative territories are located next to exactly 1 bodies of water and waterways ?
(c(Q15617994),P206,c(Q15324)|c(Q1267889))
action equal
action union
action find_tuple_counts
relation P206
type Q15617994
type Q15324
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
value 1
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) ?k WHERE { VALUES ( ?h ) { ( ontology:Q15324 ) ( ontology:Q1267889 ) } . ?g rdf:type ?h } GROUP BY ?k } . FILTER ( ?w = 1 ) }
action equal
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type body of water
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'waterway'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) ?k WHERE { VALUES ( ?h ) { ( ontology:body_of_water ) ( ontology:waterway ) } . ?g rdf:type ?h } GROUP BY ?k } . FILTER ( ?w = 1 ) }
[]
body of water waterway designation for an administrative territorial entity
Q38 Q55 Q36
SYSTEM
Italy, Netherlands, Poland
Q21111 Q446425 Q55 Q568926 Q216422 Q36 Q38 Q769680 Q236 Q20 Q3038 Q225 Q224 Q222 Q17 Q1577 Q516567 Q215 Q1009 Q1438
(c(Q15617994),P206,c(Q15324)|c(Q1267889))
action equal
action union
action find_tuple_counts
relation P206
type Q15617994
type Q15324
action find_tuple_counts
relation P206
type Q15617994
type Q1267889
value 1
[ANSWERS] are located next to exactly 1 bodies of water and waterways
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) ?k WHERE { VALUES ( ?h ) { ( ontology:Q15324 ) ( ontology:Q1267889 ) } . ?g rdf:type ?h } GROUP BY ?k } . FILTER ( ?w = 1 ) }
Corn Islands Altwarp Netherlands Maasholm Samsø Poland Italy Bornholm Montenegro Norway Helgoland Bosnia and Herzegovina Croatia Albania Japan Neuwerk Kappeln Slovenia Cameroon Campania
Italy, Netherlands and Poland are located next to exactly 1 bodies of water and waterways
Italy Netherlands Poland
action equal
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type body of water
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type waterway
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'waterway'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) ?k WHERE { VALUES ( ?h ) { ( ontology:body_of_water ) ( ontology:waterway ) } . ?g rdf:type ?h } GROUP BY ?k } . FILTER ( ?w = 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P361
Q9332 Q8436 Q82799
USER
Which names are a component of max number of behaviors or families ?
(c(Q82799),P361,c(Q9332)|c(Q8436))
action argmax
action union
action find_tuple_counts
relation P361
type Q82799
type Q9332
action find_tuple_counts
relation P361
type Q82799
type Q8436
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q9332'}, {'concept': 'Q8436'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) ?f WHERE { ?r rdf:type ?j . VALUES ( ?j ) { ( ontology:Q8436 ) ( ontology:Q9332 ) } } GROUP BY ?f } . FILTER ( ?i = ?n ) . { SELECT DISTINCT ( MAX ( ?m ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) ?w WHERE { ?q rdf:type ?o . VALUES ( ?o ) { ( ontology:Q9332 ) ( ontology:Q8436 ) } } GROUP BY ?w } } }
action argmax
action union
action find_tuple_counts
relation part of
type name
type behavior
action find_tuple_counts
relation part of
type name
type family
[{'concept': 'name'}, 'part of', [{'concept': 'behavior'}, {'concept': 'family'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) ?f WHERE { ?r rdf:type ?j . VALUES ( ?j ) { ( ontology:family ) ( ontology:behavior ) } } GROUP BY ?f } . FILTER ( ?i = ?n ) . { SELECT DISTINCT ( MAX ( ?m ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) ?w WHERE { ?q rdf:type ?o . VALUES ( ?o ) { ( ontology:behavior ) ( ontology:family ) } } GROUP BY ?w } } }
[]
behavior family name
Q235598 Q742083 Q382004
SYSTEM
Piso, Princes of Paliano, Afa-Negus
Q235598 Q742083 Q382004
(c(Q82799),P361,c(Q9332)|c(Q8436))
action argmax
action union
action find_tuple_counts
relation P361
type Q82799
type Q9332
action find_tuple_counts
relation P361
type Q82799
type Q8436
[ANSWERS] are a component of max number of behaviors or families
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q9332'}, {'concept': 'Q8436'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) ?f WHERE { ?r rdf:type ?j . VALUES ( ?j ) { ( ontology:Q8436 ) ( ontology:Q9332 ) } } GROUP BY ?f } . FILTER ( ?i = ?n ) . { SELECT DISTINCT ( MAX ( ?m ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) ?w WHERE { ?q rdf:type ?o . VALUES ( ?o ) { ( ontology:Q9332 ) ( ontology:Q8436 ) } } GROUP BY ?w } } }
Piso Princes of Paliano Afa-Negus
Piso, Princes of Paliano and Afa-Negus are a component of max number of behaviors or families
Piso Princes of Paliano Afa-Negus
action argmax
action union
action find_tuple_counts
relation part of
type name
type behavior
action find_tuple_counts
relation part of
type name
type family
[{'concept': 'name'}, 'part of', [{'concept': 'behavior'}, {'concept': 'family'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) ?f WHERE { ?r rdf:type ?j . VALUES ( ?j ) { ( ontology:family ) ( ontology:behavior ) } } GROUP BY ?f } . FILTER ( ?i = ?n ) . { SELECT DISTINCT ( MAX ( ?m ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) ?w WHERE { ?q rdf:type ?o . VALUES ( ?o ) { ( ontology:behavior ) ( ontology:family ) } } GROUP BY ?w } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P206
Q15324 Q355304 Q15617994
USER
Which administrative territories are situated in the neighbourhood of max number of bodies of water or watercourses ?
(c(Q15617994),P206,c(Q15324)|c(Q355304))
action argmax
action union
action find_tuple_counts
relation P206
type Q15617994
type Q15324
action find_tuple_counts
relation P206
type Q15617994
type Q355304
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?y ) { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?m ) WHERE { ?w rdf:type ?v . VALUES ( ?v ) { ( ontology:Q355304 ) ( ontology:Q15324 ) } } GROUP BY ?b } } . { SELECT DISTINCT ?l ( COUNT ( ?j ) AS ?t ) WHERE { { ?l property:P206 ?j . ?l rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15324 } UNION { ?l property:P206 ?j . ?l rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q355304 } } GROUP BY ?l } . FILTER ( ?t = ?y ) }
action argmax
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type body of water
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type watercourse
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?y ) { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?m ) WHERE { ?w rdf:type ?v . VALUES ( ?v ) { ( ontology:watercourse ) ( ontology:body_of_water ) } } GROUP BY ?b } } . { SELECT DISTINCT ?l ( COUNT ( ?j ) AS ?t ) WHERE { { ?l property:located_next_to_body_of_water ?j . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:body_of_water } UNION { ?l property:located_next_to_body_of_water ?j . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:watercourse } } GROUP BY ?l } . FILTER ( ?t = ?y ) }
[]
body of water watercourse designation for an administrative territorial entity
Q36
SYSTEM
Poland
Q36
(c(Q15617994),P206,c(Q15324)|c(Q355304))
action argmax
action union
action find_tuple_counts
relation P206
type Q15617994
type Q15324
action find_tuple_counts
relation P206
type Q15617994
type Q355304
[ANSWER] is situated in the neighbourhood of max number of bodies of water or watercourses
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?y ) { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?m ) WHERE { ?w rdf:type ?v . VALUES ( ?v ) { ( ontology:Q355304 ) ( ontology:Q15324 ) } } GROUP BY ?b } } . { SELECT DISTINCT ?l ( COUNT ( ?j ) AS ?t ) WHERE { { ?l property:P206 ?j . ?l rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15324 } UNION { ?l property:P206 ?j . ?l rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q355304 } } GROUP BY ?l } . FILTER ( ?t = ?y ) }
Poland
Poland is situated in the neighbourhood of max number of bodies of water or watercourses
Poland
action argmax
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type body of water
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type watercourse
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?y ) { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?m ) WHERE { ?w rdf:type ?v . VALUES ( ?v ) { ( ontology:watercourse ) ( ontology:body_of_water ) } } GROUP BY ?b } } . { SELECT DISTINCT ?l ( COUNT ( ?j ) AS ?t ) WHERE { { ?l property:located_next_to_body_of_water ?j . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:body_of_water } UNION { ?l property:located_next_to_body_of_water ?j . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:watercourse } } GROUP BY ?l } . FILTER ( ?t = ?y ) }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1983206
Q12737077
USER
And also tell me about Culla?
(Q1983206,P1313,c(Q12737077))
action filter_type
action find
entity Q1983206
relation P1313
type Q12737077
['Q1983206', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q1983206 property:P1313 ?q . ?q rdf:type ontology:Q12737077 }
Culla
action filter_type
action find
entity Culla
relation office held by head of government
type occupation
['Culla', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Culla property:office_held_by_head_of_government ?q . ?q rdf:type ontology:occupation }
[]
occupation
Q26697448
SYSTEM
mayor of Culla
Q26697448
(Q1983206,P1313,c(Q12737077))
action filter_type
action find
entity Q1983206
relation P1313
type Q12737077
[ANSWER]
['Q1983206', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q1983206 property:P1313 ?q . ?q rdf:type ontology:Q12737077 }
mayor of Culla
mayor of Culla
action filter_type
action find
entity Culla
relation office held by head of government
type occupation
['Culla', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Culla property:office_held_by_head_of_government ?q . ?q rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q26697448
P1313
Q1048835
USER
Which political territory has that occupation as position of head of government ?
(c(Q1048835),P1313,Q26697448)
action filter_type
action find_reverse
entity Q26697448
relation P1313
type Q1048835
[{'concept': 'Q1048835'}, 'P1313', 'Q26697448']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q1048835 . ?a property:P1313 resource:Q26697448 }
mayor of Culla
action filter_type
action find_reverse
entity mayor of Culla
relation office held by head of government
type political territorial entity
[{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Culla']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:political_territorial_entity . ?a property:office_held_by_head_of_government resource:mayor_of_Culla }
[]
political territorial entity
Q1983206
SYSTEM
Culla
Q1983206
(c(Q1048835),P1313,Q26697448)
action filter_type
action find_reverse
entity Q26697448
relation P1313
type Q1048835
[ANSWER] has that occupation as position of head of government
[{'concept': 'Q1048835'}, 'P1313', 'Q26697448']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q1048835 . ?a property:P1313 resource:Q26697448 }
Culla
Culla has that occupation as position of head of government
Culla
action filter_type
action find_reverse
entity mayor of Culla
relation office held by head of government
type political territorial entity
[{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Culla']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:political_territorial_entity . ?a property:office_held_by_head_of_government resource:mayor_of_Culla }
[]