Simple Question (Direct)
Simple Question
Q64628
P106
Q28640
USER
What are the professions of Maryam Keshavarz ?
(Q64628,P106,c(Q28640))
action filter_type
action find
entity Q64628
relation P106
type Q28640
['Q64628', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q28640 . resource:Q64628 property:P106 ?e }
Maryam Keshavarz
action filter_type
action find
entity Maryam Keshavarz
relation occupation
type profession
['Maryam Keshavarz', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:profession . resource:Maryam_Keshavarz property:occupation ?e }
[]
profession
Q2526255 Q3282637 Q28389
SYSTEM
film director, film producer, screenwriter
Q2526255 Q3282637 Q28389
(Q64628,P106,c(Q28640))
action filter_type
action find
entity Q64628
relation P106
type Q28640
The professions of Maryam Keshavarz are [ANSWERS]
['Q64628', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q28640 . resource:Q64628 property:P106 ?e }
film director film producer screenwriter
The professions of Maryam Keshavarz are film director, film producer and screenwriter
film director film producer screenwriter
action filter_type
action find
entity Maryam Keshavarz
relation occupation
type profession
['Maryam Keshavarz', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:profession . resource:Maryam_Keshavarz property:occupation ?e }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q28389
P425
Q223393
USER
Which literary genre is associated with the field of occupation screenwriter ?
(Q28389,P425,c(Q223393))
action filter_type
action find
entity Q28389
relation P425
type Q223393
['Q28389', 'P425', {'concept': 'Q223393'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q223393 . resource:Q28389 property:P425 ?p }
screenwriter
action filter_type
action find
entity screenwriter
relation field of this occupation
type literary genre
['screenwriter', 'field of this occupation', {'concept': 'literary genre'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:literary_genre . resource:screenwriter property:field_of_this_occupation ?p }
[]
literary genre
Q103076
SYSTEM
screenplay
Q103076
(Q28389,P425,c(Q223393))
action filter_type
action find
entity Q28389
relation P425
type Q223393
The [ANSWER] is associated with the field of occupation screenwriter
['Q28389', 'P425', {'concept': 'Q223393'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q223393 . resource:Q28389 property:P425 ?p }
screenplay
The screenplay is associated with the field of occupation screenwriter
screenplay
action filter_type
action find
entity screenwriter
relation field of this occupation
type literary genre
['screenwriter', 'field of this occupation', {'concept': 'literary genre'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:literary_genre . resource:screenwriter property:field_of_this_occupation ?p }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q64628
P19
Q56061
USER
Which administrative territory was Maryam Keshavarz born at ?
(Q64628,P19,c(Q56061))
action filter_type
action find
entity Q64628
relation P19
type Q56061
['Q64628', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . resource:Q64628 property:P19 ?a }
Maryam Keshavarz
action filter_type
action find
entity Maryam Keshavarz
relation place of birth
type administrative territorial entity
['Maryam Keshavarz', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:Maryam_Keshavarz property:place_of_birth ?a }
[]
administrative territorial entity
Q60
SYSTEM
New York City
Q60
(Q64628,P19,c(Q56061))
action filter_type
action find
entity Q64628
relation P19
type Q56061
Maryam Keshavarz was born in [ANSWER]
['Q64628', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . resource:Q64628 property:P19 ?a }
New York City
Maryam Keshavarz was born in New York City
New York City
action filter_type
action find
entity Maryam Keshavarz
relation place of birth
type administrative territorial entity
['Maryam Keshavarz', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:Maryam_Keshavarz property:place_of_birth ?a }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q64628
Q852446
USER
And which US administrative territory?
(Q64628,P19,c(Q852446))
action filter_type
action find
entity Q64628
relation P19
type Q852446
['Q64628', 'P19', {'concept': 'Q852446'}]
SELECT DISTINCT ?m WHERE { resource:Q64628 property:P19 ?m . ?m rdf:type ontology:Q852446 }
Maryam Keshavarz
action filter_type
action find
entity Maryam Keshavarz
relation place of birth
type administrative territorial entity of the United States
['Maryam Keshavarz', 'place of birth', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?m WHERE { resource:Maryam_Keshavarz property:place_of_birth ?m . ?m rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
administrative territorial entity of the United States
Q1384
SYSTEM
New York
Q1384
(Q64628,P19,c(Q852446))
action filter_type
action find
entity Q64628
relation P19
type Q852446
[ANSWER]
['Q64628', 'P19', {'concept': 'Q852446'}]
SELECT DISTINCT ?m WHERE { resource:Q64628 property:P19 ?m . ?m rdf:type ontology:Q852446 }
New York
New York
action filter_type
action find
entity Maryam Keshavarz
relation place of birth
type administrative territorial entity of the United States
['Maryam Keshavarz', 'place of birth', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?m WHERE { resource:Maryam_Keshavarz property:place_of_birth ?m . ?m rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1384
P47
Q852446
USER
Which US administrative territories are bordered by that one ?
(c(Q852446),P47,Q1384)
action filter_type
action find
entity Q1384
relation P47
type Q852446
[{'concept': 'Q852446'}, 'P47', 'Q1384']
SELECT DISTINCT ?x WHERE { resource:Q1384 property:P47 ?x . ?x rdf:type ontology:Q852446 }
New York
action filter_type
action find
entity New York
relation shares border with
type administrative territorial entity of the United States
[{'concept': 'administrative territorial entity of the United States'}, 'shares border with', 'New York']
SELECT DISTINCT ?x WHERE { resource:New_York property:shares_border_with ?x . ?x rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
administrative territorial entity of the United States
Q1400 Q16551 Q1408
SYSTEM
Pennsylvania, Vermont, New Jersey
Q16551 Q1400 Q771 Q779 Q1408
(c(Q852446),P47,Q1384)
action filter_type
action find
entity Q1384
relation P47
type Q852446
[ANSWERS] are bordered by that one
[{'concept': 'Q852446'}, 'P47', 'Q1384']
SELECT DISTINCT ?x WHERE { resource:Q1384 property:P47 ?x . ?x rdf:type ontology:Q852446 }
Vermont Pennsylvania Massachusetts Connecticut New Jersey
Pennsylvania, Vermont and New Jersey are bordered by that one
Pennsylvania Vermont New Jersey
action filter_type
action find
entity New York
relation shares border with
type administrative territorial entity of the United States
[{'concept': 'administrative territorial entity of the United States'}, 'shares border with', 'New York']
SELECT DISTINCT ?x WHERE { resource:New_York property:shares_border_with ?x . ?x rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P163
Q14660 Q17335294 Q852446
USER
Which US administrative territories have flag named approximately the same number of flags or coats of arms as that US administrative territory ?
(c(Q852446),P163,c(Q14660)|c(Q17335294))
[{'concept': 'Q852446'}, 'P163', [{'concept': 'Q14660'}, {'concept': 'Q17335294'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:Q14660 ?y } UNION { ?z property:Q14660 ?x } } . ?z rdf:type ontology:Q852446 . ?y rdf:type ontology:Q14660 . ?x rdf:type ontology:Q17335294 }
[{'concept': 'administrative territorial entity of the United States'}, 'flag', [{'concept': 'flag'}, {'concept': 'flag or coat of arms'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:flag ?y } UNION { ?z property:flag ?x } } . ?z rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?y rdf:type ontology:flag . ?x rdf:type ontology:flag_or_coat_of_arms }
[]
flag flag or coat of arms administrative territorial entity of the United States
Comparative|More/Less|Mult. entity type|Clarification
Q16551
SYSTEM
Did you mean Vermont ?
(c(Q852446),P163,c(Q14660)|c(Q17335294))
[ANSWER]
[{'concept': 'Q852446'}, 'P163', [{'concept': 'Q14660'}, {'concept': 'Q17335294'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:Q14660 ?y } UNION { ?z property:Q14660 ?x } } . ?z rdf:type ontology:Q852446 . ?y rdf:type ontology:Q14660 . ?x rdf:type ontology:Q17335294 }
Did you mean Vermont ?
Vermont
[{'concept': 'administrative territorial entity of the United States'}, 'flag', [{'concept': 'flag'}, {'concept': 'flag or coat of arms'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:flag ?y } UNION { ?z property:flag ?x } } . ?z rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?y rdf:type ontology:flag . ?x rdf:type ontology:flag_or_coat_of_arms }
[]
Comparative Reasoning (All)
USER
No, I meant New Jersey. Could you tell me the answer for that?
(c(Q852446),P163,c(Q14660)|c(Q17335294))
Q1408
[{'concept': 'Q852446'}, 'P163', [{'concept': 'Q14660'}, {'concept': 'Q17335294'}]]
[{'concept': 'administrative territorial entity of the United States'}, 'flag', [{'concept': 'flag'}, {'concept': 'flag or coat of arms'}]]
[]
SYSTEM
1
Q1537
(c(Q852446),P163,c(Q14660)|c(Q17335294))
[ANSWER]
[{'concept': 'Q852446'}, 'P163', [{'concept': 'Q14660'}, {'concept': 'Q17335294'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:Q14660 ?y } UNION { ?z property:Q14660 ?x } } . ?z rdf:type ontology:Q852446 . ?y rdf:type ontology:Q14660 . ?x rdf:type ontology:Q17335294 }
Wisconsin
1
[{'concept': 'administrative territorial entity of the United States'}, 'flag', [{'concept': 'flag'}, {'concept': 'flag or coat of arms'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:flag ?y } UNION { ?z property:flag ?x } } . ?z rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?y rdf:type ontology:flag . ?x rdf:type ontology:flag_or_coat_of_arms }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1408
P194
Q11204
USER
Which legislature is the legislative body for New Jersey ?
(Q1408,P194,c(Q11204))
action filter_type
action find
entity Q1408
relation P194
type Q11204
['Q1408', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q11204 . resource:Q1408 property:P194 ?z }
New Jersey
action filter_type
action find
entity New Jersey
relation legislative body
type legislature
['New Jersey', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:legislature . resource:New_Jersey property:legislative_body ?z }
[]
legislature
Q2867079
SYSTEM
New Jersey Legislature
Q2867079
(Q1408,P194,c(Q11204))
action filter_type
action find
entity Q1408
relation P194
type Q11204
The [ANSWER] is the legislative body for New Jersey
['Q1408', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q11204 . resource:Q1408 property:P194 ?z }
New Jersey Legislature
The New Jersey Legislature is the legislative body for New Jersey
New Jersey Legislature
action filter_type
action find
entity New Jersey
relation legislative body
type legislature
['New Jersey', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:legislature . resource:New_Jersey property:legislative_body ?z }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1408
P138
Q2235308
USER
Which ship type has that US administrative territory as its namesake ?
(c(Q2235308),P138,Q2867079)
action filter_type
action find_reverse
entity Q1408
relation P138
type Q2235308
[{'concept': 'Q2235308'}, 'P138', 'Q2867079']
SELECT DISTINCT ?y WHERE { ?y property:P138 resource:Q1408 . ?y rdf:type ontology:Q2235308 }
New Jersey
action filter_type
action find_reverse
entity New Jersey
relation named after
type ship type
[{'concept': 'ship type'}, 'named after', 'New Jersey Legislature']
SELECT DISTINCT ?y WHERE { ?y property:named_after resource:New_Jersey . ?y rdf:type ontology:ship_type }
[]
ship type
Q507603
SYSTEM
USS New Jersey
Q507603
(c(Q2235308),P138,Q2867079)
action filter_type
action find_reverse
entity Q1408
relation P138
type Q2235308
The [ANSWER] has that US administrative territory as its namesake
[{'concept': 'Q2235308'}, 'P138', 'Q2867079']
SELECT DISTINCT ?y WHERE { ?y property:P138 resource:Q1408 . ?y rdf:type ontology:Q2235308 }
USS New Jersey
The USS New Jersey has that US administrative territory as its namesake
USS New Jersey
action filter_type
action find_reverse
entity New Jersey
relation named after
type ship type
[{'concept': 'ship type'}, 'named after', 'New Jersey Legislature']
SELECT DISTINCT ?y WHERE { ?y property:named_after resource:New_Jersey . ?y rdf:type ontology:ship_type }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q319630 Q1408
P138
Q2235308
USER
Or Henry Clay?
OR((c(Q2235308),P138,Q1408), (c(Q2235308),P138,Q319630))
action filter_type
action union
action find_reverse
entity Q1408
relation P138
action find_reverse
entity Q319630
relation P138
type Q2235308
{'OR': [[{'concept': 'Q2235308'}, 'P138', 'Q1408'], [{'concept': 'Q2235308'}, 'P138', 'Q319630']]}
SELECT DISTINCT ?r WHERE { { ?r property:P138 ?l . VALUES ( ?l ) { ( resource:Q1408 ) ( resource:Q319630 ) } } . ?r rdf:type ontology:Q2235308 }
Henry Clay New Jersey
action filter_type
action union
action find_reverse
entity New Jersey
relation named after
action find_reverse
entity Henry Clay
relation named after
type ship type
{'OR': [[{'concept': 'ship type'}, 'named after', 'New Jersey'], [{'concept': 'ship type'}, 'named after', 'Henry Clay']]}
SELECT DISTINCT ?r WHERE { { ?r property:named_after ?l . VALUES ( ?l ) { ( resource:New_Jersey ) ( resource:Henry_Clay ) } } . ?r rdf:type ontology:ship_type }
[]
ship type
Q507603 Q6141356
SYSTEM
USS New Jersey, USS Henry Clay
Q507603 Q6141356
OR((c(Q2235308),P138,Q1408), (c(Q2235308),P138,Q319630))
action filter_type
action union
action find_reverse
entity Q1408
relation P138
action find_reverse
entity Q319630
relation P138
type Q2235308
[ANSWERS]
{'OR': [[{'concept': 'Q2235308'}, 'P138', 'Q1408'], [{'concept': 'Q2235308'}, 'P138', 'Q319630']]}
SELECT DISTINCT ?r WHERE { { ?r property:P138 ?l . VALUES ( ?l ) { ( resource:Q1408 ) ( resource:Q319630 ) } } . ?r rdf:type ontology:Q2235308 }
USS New Jersey USS Henry Clay
USS New Jersey USS Henry Clay
action filter_type
action union
action find_reverse
entity New Jersey
relation named after
action find_reverse
entity Henry Clay
relation named after
type ship type
{'OR': [[{'concept': 'ship type'}, 'named after', 'New Jersey'], [{'concept': 'ship type'}, 'named after', 'Henry Clay']]}
SELECT DISTINCT ?r WHERE { { ?r property:named_after ?l . VALUES ( ?l ) { ( resource:New_Jersey ) ( resource:Henry_Clay ) } } . ?r rdf:type ontology:ship_type }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P138
Q2235308 Q15324
USER
Which bodies of water have exactly 2 ship types as their namesake ?
(c(Q15324),P138,c(Q2235308))
action equal
action find_tuple_counts
relation P138
type Q15324
type Q2235308
value 2
[{'concept': 'Q15324'}, 'P138', {'concept': 'Q2235308'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?n = 2 ) . { SELECT DISTINCT ?w ( COUNT ( ?b ) AS ?n ) WHERE { ?w property:P138 ?b . ?w rdf:type ontology:Q15324 . ?b rdf:type ontology:Q2235308 } GROUP BY ?w } }
action equal
action find_tuple_counts
relation named after
type body of water
type ship type
value 2
[{'concept': 'body of water'}, 'named after', {'concept': 'ship type'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?n = 2 ) . { SELECT DISTINCT ?w ( COUNT ( ?b ) AS ?n ) WHERE { ?w property:named_after ?b . ?w rdf:type ontology:body_of_water . ?b rdf:type ontology:ship_type } GROUP BY ?w } }
[]
ship type body of water
Q141061
SYSTEM
Erebus and Terror Gulf
Q141061
(c(Q15324),P138,c(Q2235308))
action equal
action find_tuple_counts
relation P138
type Q15324
type Q2235308
value 2
[ANSWER] have exactly 2 ship types as their namesake
[{'concept': 'Q15324'}, 'P138', {'concept': 'Q2235308'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?n = 2 ) . { SELECT DISTINCT ?w ( COUNT ( ?b ) AS ?n ) WHERE { ?w property:P138 ?b . ?w rdf:type ontology:Q15324 . ?b rdf:type ontology:Q2235308 } GROUP BY ?w } }
Erebus and Terror Gulf
Erebus and Terror Gulf have exactly 2 ship types as their namesake
Erebus and Terror Gulf
action equal
action find_tuple_counts
relation named after
type body of water
type ship type
value 2
[{'concept': 'body of water'}, 'named after', {'concept': 'ship type'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?n = 2 ) . { SELECT DISTINCT ?w ( COUNT ( ?b ) AS ?n ) WHERE { ?w property:named_after ?b . ?w rdf:type ontology:body_of_water . ?b rdf:type ontology:ship_type } GROUP BY ?w } }
[]