Simple Question (Direct)
Simple Question
Q7660032
P27
Q15617994
USER
Which administrative territory is Sydney Martin an inhabitant of ?
(Q7660032,P27,c(Q15617994))
action filter_type
action find
entity Q7660032
relation P27
type Q15617994
['Q7660032', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q7660032 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Sydney Martin
action filter_type
action find
entity Sydney Martin
relation country of citizenship
type designation for an administrative territorial entity
['Sydney Martin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Sydney_Martin property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q258
SYSTEM
South Africa
Q258
(Q7660032,P27,c(Q15617994))
action filter_type
action find
entity Q7660032
relation P27
type Q15617994
[ANSWER] is Sydney Martin an inhabitant of
['Q7660032', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q7660032 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
South Africa
South Africa is Sydney Martin an inhabitant of
South Africa
action filter_type
action find
entity Sydney Martin
relation country of citizenship
type designation for an administrative territorial entity
['Sydney Martin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Sydney_Martin property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7660032
P735
Q82799
USER
What is the firstname of Sydney Martin ?
(Q7660032,P735,c(Q82799))
action filter_type
action find
entity Q7660032
relation P735
type Q82799
['Q7660032', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?m WHERE { resource:Q7660032 property:P735 ?m . ?m rdf:type ontology:Q82799 }
Sydney Martin
action filter_type
action find
entity Sydney Martin
relation given name
type name
['Sydney Martin', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?m WHERE { resource:Sydney_Martin property:given_name ?m . ?m rdf:type ontology:name }
[]
name
Q18915128
SYSTEM
Sydney
Q18915128
(Q7660032,P735,c(Q82799))
action filter_type
action find
entity Q7660032
relation P735
type Q82799
The firstname of [ANSWER] Martin is of [ANSWER]
['Q7660032', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?m WHERE { resource:Q7660032 property:P735 ?m . ?m rdf:type ontology:Q82799 }
Sydney
The firstname of Sydney Martin is of Sydney
Sydney
action filter_type
action find
entity Sydney Martin
relation given name
type name
['Sydney Martin', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?m WHERE { resource:Sydney_Martin property:given_name ?m . ?m rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7660032
P734
Q82799
USER
Who has the surname that person ?
(Q18915128,P734,c(Q82799))
action filter_type
action find
entity Q7660032
relation P734
type Q82799
['Q18915128', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { resource:Q7660032 property:P734 ?o . ?o rdf:type ontology:Q82799 }
Sydney Martin
action filter_type
action find
entity Sydney Martin
relation family name
type name
['Sydney', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { resource:Sydney_Martin property:family_name ?o . ?o rdf:type ontology:name }
[]
name
Q17744604
SYSTEM
Martin
Q17744604
(Q18915128,P734,c(Q82799))
action filter_type
action find
entity Q7660032
relation P734
type Q82799
[ANSWER] has the surname that person
['Q18915128', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { resource:Q7660032 property:P734 ?o . ?o rdf:type ontology:Q82799 }
Martin
Martin has the surname that person
Martin
action filter_type
action find
entity Sydney Martin
relation family name
type name
['Sydney', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { resource:Sydney_Martin property:family_name ?o . ?o rdf:type ontology:name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q17744604 Q12471176
P734
Q502895
USER
Does Aji Suryanata Kesuma have that one as family name ?
(Q12471176,P734,Q17744604)
action is_in
entity Q12471176
action find
entity Q17744604
relation P734
['Q12471176', 'P734', 'Q17744604']
ASK WHERE { resource:Q17744604 property:P734 resource:Q12471176 }
Martin Aji Suryanata Kesuma
action is_in
entity Aji Suryanata Kesuma
action find
entity Martin
relation family name
['Aji Suryanata Kesuma', 'family name', 'Martin']
ASK WHERE { resource:Martin property:family_name resource:Aji_Suryanata_Kesuma }
[]
common name
SYSTEM
NO
(Q12471176,P734,Q17744604)
action is_in
entity Q12471176
action find
entity Q17744604
relation P734
[ANSWER]
['Q12471176', 'P734', 'Q17744604']
ASK WHERE { resource:Q17744604 property:P734 resource:Q12471176 }
No
action is_in
entity Aji Suryanata Kesuma
action find
entity Martin
relation family name
['Aji Suryanata Kesuma', 'family name', 'Martin']
ASK WHERE { resource:Martin property:family_name resource:Aji_Suryanata_Kesuma }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q1190554 Q34442 Q15617994
USER
Which administrative territories have atleast 1 events or roads as their namesake ?
(c(Q15617994),P138,c(Q1190554)|c(Q34442))
action atleast
action union
action find_tuple_counts
relation P138
type Q15617994
type Q1190554
action find_tuple_counts
relation P138
type Q15617994
type Q34442
value 1
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q1190554'}, {'concept': 'Q34442'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?o ) WHERE { { ?q property:P138 ?a . ?q rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q34442 } UNION { ?q rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1190554 . ?q property:P138 ?a } } GROUP BY ?q } . FILTER ( ?o >= 1 ) }
action atleast
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type event
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type road
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'event'}, {'concept': 'road'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?o ) WHERE { { ?q property:named_after ?a . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:road } UNION { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:event . ?q property:named_after ?a } } GROUP BY ?q } . FILTER ( ?o >= 1 ) }
[]
event road designation for an administrative territorial entity
Q4149 Q1393469 Q1508919
SYSTEM
Neustadt an der Weinstraße, Jemmapes, Marengo
Q1508919 Q1452646 Q1393469 Q4149
(c(Q15617994),P138,c(Q1190554)|c(Q34442))
action atleast
action union
action find_tuple_counts
relation P138
type Q15617994
type Q1190554
action find_tuple_counts
relation P138
type Q15617994
type Q34442
value 1
[ANSWERS] have atleast 1 events or roads as their namesake
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q1190554'}, {'concept': 'Q34442'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?o ) WHERE { { ?q property:P138 ?a . ?q rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q34442 } UNION { ?q rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1190554 . ?q property:P138 ?a } } GROUP BY ?q } . FILTER ( ?o >= 1 ) }
Marengo Montenotte Jemmapes Neustadt an der Weinstraße
Neustadt an der Weinstraße, Jemmapes and Marengo have atleast 1 events or roads as their namesake
Neustadt an der Weinstraße Jemmapes Marengo
action atleast
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type event
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type road
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'event'}, {'concept': 'road'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?o ) WHERE { { ?q property:named_after ?a . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:road } UNION { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:event . ?q property:named_after ?a } } GROUP BY ?q } . FILTER ( ?o >= 1 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1508919
P1376
Q15617994
USER
Which administrative territory is the capital of that one ?
(c(Q15617994),P1376,Q1508919)
action filter_type
action find_reverse
entity Q1508919
relation P1376
type Q15617994
[{'concept': 'Q15617994'}, 'P1376', 'Q1508919']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . ?q property:P1376 resource:Q1508919 }
Marengo
action filter_type
action find_reverse
entity Marengo
relation capital of
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'capital of', 'Marengo']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q property:capital_of resource:Marengo }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q4149
SYSTEM
Did you mean Neustadt an der Weinstraße ?
Q4149 Q1393469 Q1508919
(c(Q15617994),P1376,Q4149) (c(Q15617994),P1376,Q1393469) (c(Q15617994),P1376,Q1508919)
[ANSWER]
[{'concept': 'Q15617994'}, 'P1376', 'Q4149'] [{'concept': 'Q15617994'}, 'P1376', 'Q1393469'] [{'concept': 'Q15617994'}, 'P1376', 'Q1508919']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . ?q property:P1376 resource:Q1508919 }
Neustadt an der Weinstraße Jemmapes Marengo
Did you mean Neustadt an der Weinstraße ?
Neustadt an der Weinstraße
[{'concept': 'designation for an administrative territorial entity'}, 'capital of', 'Neustadt an der Weinstraße'] [{'concept': 'designation for an administrative territorial entity'}, 'capital of', 'Jemmapes'] [{'concept': 'designation for an administrative territorial entity'}, 'capital of', 'Marengo']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q property:capital_of resource:Marengo }
[]
Simple Question (Coreferenced)
USER
No, I meant Marengo. Could you tell me the answer for that?
(c(Q15617994),P1376,Q1508919)
Q1508919
[{'concept': 'Q15617994'}, 'P1376', 'Q1508919']
[{'concept': 'designation for an administrative territorial entity'}, 'capital of', 'Marengo']
[]
Q6088
SYSTEM
Alessandria
Q6088
(c(Q15617994),P1376,Q1508919)
action filter_type
action find_reverse
entity Q1508919
relation P1376
type Q15617994
[ANSWER] is the capital of that one
[{'concept': 'Q15617994'}, 'P1376', 'Q1508919']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . ?q property:P1376 resource:Q1508919 }
Alessandria
Alessandria is the capital of that one
Alessandria
action filter_type
action find_reverse
entity Marengo
relation capital of
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'capital of', 'Marengo']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q property:capital_of resource:Marengo }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6088
P127
Q483110
USER
Which stadium belongs to that administrative territory ?
(c(Q483110),P127,Q6088)
action filter_type
action find_reverse
entity Q6088
relation P127
type Q483110
[{'concept': 'Q483110'}, 'P127', 'Q6088']
SELECT DISTINCT ?z WHERE { ?z property:P127 resource:Q6088 . ?z rdf:type ontology:Q483110 }
Alessandria
action filter_type
action find_reverse
entity Alessandria
relation owned by
type stadium
[{'concept': 'stadium'}, 'owned by', 'Alessandria']
SELECT DISTINCT ?z WHERE { ?z property:owned_by resource:Alessandria . ?z rdf:type ontology:stadium }
[]
stadium
Q2484922
SYSTEM
Stadio Giuseppe Moccagatta
Q2484922
(c(Q483110),P127,Q6088)
action filter_type
action find_reverse
entity Q6088
relation P127
type Q483110
[ANSWER] belongs to that administrative territory
[{'concept': 'Q483110'}, 'P127', 'Q6088']
SELECT DISTINCT ?z WHERE { ?z property:P127 resource:Q6088 . ?z rdf:type ontology:Q483110 }
Stadio Giuseppe Moccagatta
Stadio Giuseppe Moccagatta belongs to that administrative territory
Stadio Giuseppe Moccagatta
action filter_type
action find_reverse
entity Alessandria
relation owned by
type stadium
[{'concept': 'stadium'}, 'owned by', 'Alessandria']
SELECT DISTINCT ?z WHERE { ?z property:owned_by resource:Alessandria . ?z rdf:type ontology:stadium }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q846664
P180
Q82799 Q15709879 Q1792379
USER
Which names are expressed in more number of artwork series or art genres than hawk ?
(c(Q15709879)|c(Q1792379),P180,c(Q82799))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
action count
action filter_multi_types
action find_reverse
entity Q846664
relation P180
type Q15709879
type Q1792379
[[{'concept': 'Q15709879'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?g ) AS ?j ) WHERE { ?g rdf:type ?s . VALUES ( ?s ) { ( ontology:Q15709879 ) ( ontology:Q1792379 ) } } GROUP BY ?c } . FILTER ( ?j > ?t ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { ?r property:P180 resource:Q846664 . { VALUES ( ?o ) { ( ontology:Q15709879 ) ( ontology:Q1792379 ) } . ?r rdf:type ?o } } } }
hawk
action greater
action union
action find_reverse_tuple_counts
relation depicts
type name
type artwork series
action find_reverse_tuple_counts
relation depicts
type name
type art genre
action count
action filter_multi_types
action find_reverse
entity hawk
relation depicts
type artwork series
type art genre
[[{'concept': 'artwork series'}, {'concept': 'art genre'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?g ) AS ?j ) WHERE { ?g rdf:type ?s . VALUES ( ?s ) { ( ontology:artwork_series ) ( ontology:art_genre ) } } GROUP BY ?c } . FILTER ( ?j > ?t ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { ?r property:depicts resource:hawk . { VALUES ( ?o ) { ( ontology:artwork_series ) ( ontology:art_genre ) } . ?r rdf:type ?o } } } }
[]
name artwork series art genre
Q144 Q152 Q726
SYSTEM
dog, fish, horse
Q5 Q726 Q144 Q201251 Q1367 Q152
(c(Q15709879)|c(Q1792379),P180,c(Q82799))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
action count
action filter_multi_types
action find_reverse
entity Q846664
relation P180
type Q15709879
type Q1792379
[ANSWERS] are expressed in more number of artwork series or art genres than hawk
[[{'concept': 'Q15709879'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?g ) AS ?j ) WHERE { ?g rdf:type ?s . VALUES ( ?s ) { ( ontology:Q15709879 ) ( ontology:Q1792379 ) } } GROUP BY ?c } . FILTER ( ?j > ?t ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { ?r property:P180 resource:Q846664 . { VALUES ( ?o ) { ( ontology:Q15709879 ) ( ontology:Q1792379 ) } . ?r rdf:type ?o } } } }
human horse dog peacock monkey fish
Dog, fish and horse are expressed in more number of artwork series or art genres than hawk
dog fish horse
action greater
action union
action find_reverse_tuple_counts
relation depicts
type name
type artwork series
action find_reverse_tuple_counts
relation depicts
type name
type art genre
action count
action filter_multi_types
action find_reverse
entity hawk
relation depicts
type artwork series
type art genre
[[{'concept': 'artwork series'}, {'concept': 'art genre'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?g ) AS ?j ) WHERE { ?g rdf:type ?s . VALUES ( ?s ) { ( ontology:artwork_series ) ( ontology:art_genre ) } } GROUP BY ?c } . FILTER ( ?j > ?t ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { ?r property:depicts resource:hawk . { VALUES ( ?o ) { ( ontology:artwork_series ) ( ontology:art_genre ) } . ?r rdf:type ?o } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q41692
P180
Q82799 Q15709879 Q1792379
USER
And also tell me about mule?
(c(Q15709879)|c(Q1792379),P180,c(Q82799))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
action count
action filter_multi_types
action find_reverse
entity Q41692
relation P180
type Q15709879
type Q1792379
[[{'concept': 'Q15709879'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) ?m WHERE { VALUES ( ?d ) { ( ontology:Q1792379 ) ( ontology:Q15709879 ) } . ?s rdf:type ?d } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { { VALUES ( ?v ) { ( ontology:Q1792379 ) ( ontology:Q15709879 ) } . ?e rdf:type ?v } . ?e property:P180 resource:Q41692 } } . FILTER ( ?f > ?g ) }
mule
action greater
action union
action find_reverse_tuple_counts
relation depicts
type name
type artwork series
action find_reverse_tuple_counts
relation depicts
type name
type art genre
action count
action filter_multi_types
action find_reverse
entity mule
relation depicts
type artwork series
type art genre
[[{'concept': 'artwork series'}, {'concept': 'art genre'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) ?m WHERE { VALUES ( ?d ) { ( ontology:art_genre ) ( ontology:artwork_series ) } . ?s rdf:type ?d } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { { VALUES ( ?v ) { ( ontology:art_genre ) ( ontology:artwork_series ) } . ?e rdf:type ?v } . ?e property:depicts resource:mule } } . FILTER ( ?f > ?g ) }
[]
name artwork series art genre
Q144 Q152 Q726
SYSTEM
dog, fish, horse
Q5 Q726 Q144 Q201251 Q1367 Q152
(c(Q15709879)|c(Q1792379),P180,c(Q82799))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
action count
action filter_multi_types
action find_reverse
entity Q41692
relation P180
type Q15709879
type Q1792379
[ANSWERS]
[[{'concept': 'Q15709879'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) ?m WHERE { VALUES ( ?d ) { ( ontology:Q1792379 ) ( ontology:Q15709879 ) } . ?s rdf:type ?d } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { { VALUES ( ?v ) { ( ontology:Q1792379 ) ( ontology:Q15709879 ) } . ?e rdf:type ?v } . ?e property:P180 resource:Q41692 } } . FILTER ( ?f > ?g ) }
human horse dog peacock monkey fish
dog fish horse
action greater
action union
action find_reverse_tuple_counts
relation depicts
type name
type artwork series
action find_reverse_tuple_counts
relation depicts
type name
type art genre
action count
action filter_multi_types
action find_reverse
entity mule
relation depicts
type artwork series
type art genre
[[{'concept': 'artwork series'}, {'concept': 'art genre'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) ?m WHERE { VALUES ( ?d ) { ( ontology:art_genre ) ( ontology:artwork_series ) } . ?s rdf:type ?d } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { { VALUES ( ?v ) { ( ontology:art_genre ) ( ontology:artwork_series ) } . ?e rdf:type ?v } . ?e property:depicts resource:mule } } . FILTER ( ?f > ?g ) }
[]