Simple Question (Direct)
Simple Question
Q6137653
P21
Q290
USER
Which sex does James L. Ryan belong to ?
(Q6137653,P21,c(Q290))
action filter_type
action find
entity Q6137653
relation P21
type Q290
['Q6137653', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q6137653 property:P21 ?k . ?k rdf:type ontology:Q290 }
James L. Ryan
action filter_type
action find
entity James L. Ryan
relation gender
type sex
['James L. Ryan', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:James_L._Ryan property:gender ?k . ?k rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q6137653,P21,c(Q290))
action filter_type
action find
entity Q6137653
relation P21
type Q290
James L. Ryan belongs to [ANSWER]
['Q6137653', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q6137653 property:P21 ?k . ?k rdf:type ontology:Q290 }
male
James L. Ryan belongs to male
male
action filter_type
action find
entity James L. Ryan
relation gender
type sex
['James L. Ryan', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:James_L._Ryan property:gender ?k . ?k rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6137653
P27
Q15617994
USER
Which administrative territory is that person an inhabitant of ?
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q6137653
relation P27
type Q15617994
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q6137653 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
James L. Ryan
action filter_type
action find
entity James L. Ryan
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:James_L._Ryan property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q6137653
relation P27
type Q15617994
The [ANSWER] is that person an inhabitant of
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q6137653 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
United States of America
The United States of America is that person an inhabitant of
United States of America
action filter_type
action find
entity James L. Ryan
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:James_L._Ryan property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many political territories have ambassadorial relations with around 42 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 42
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?v ) AS ?y ) WHERE { ?c property:P530 ?v . ?c rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q15617994 } GROUP BY ?c } . FILTER ( ?y = 42 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 42
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?v ) AS ?y ) WHERE { ?c property:diplomatic_relation ?v . ?c rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } . FILTER ( ?y = 42 ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
5
Q40 Q35 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 42
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?v ) AS ?y ) WHERE { ?c property:P530 ?v . ?c rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q15617994 } GROUP BY ?c } . FILTER ( ?y = 42 ) }
Austria Denmark Canada New Zealand Jamaica
5
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 42
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?v ) AS ?y ) WHERE { ?c property:diplomatic_relation ?v . ?c rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } . FILTER ( ?y = 42 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P194
Q11204
USER
Which legislature is the representative body for United States of America ?
(Q30,P194,c(Q11204))
action filter_type
action find
entity Q30
relation P194
type Q11204
['Q30', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q11204 . resource:Q30 property:P194 ?s }
United States of America
action filter_type
action find
entity United States of America
relation legislative body
type legislature
['United States of America', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:legislature . resource:United_States_of_America property:legislative_body ?s }
[]
legislature
Q11268
SYSTEM
United States Congress
Q11268
(Q30,P194,c(Q11204))
action filter_type
action find
entity Q30
relation P194
type Q11204
The [ANSWER] is the representative body for United States of America
['Q30', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q11204 . resource:Q30 property:P194 ?s }
United States Congress
The United States Congress is the representative body for United States of America
United States Congress
action filter_type
action find
entity United States of America
relation legislative body
type legislature
['United States of America', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:legislature . resource:United_States_of_America property:legislative_body ?s }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P36
Q56061
USER
Which administrative territories are the capitals of United States of America ?
(Q30,P36,c(Q56061))
action filter_type
action find
entity Q30
relation P36
type Q56061
['Q30', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q30 property:P36 ?t . ?t rdf:type ontology:Q56061 }
United States of America
action filter_type
action find
entity United States of America
relation capital
type administrative territorial entity
['United States of America', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:United_States_of_America property:capital ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q60 Q61
SYSTEM
New York City, Washington, D.C.
Q60 Q61
(Q30,P36,c(Q56061))
action filter_type
action find
entity Q30
relation P36
type Q56061
[ANSWERS]
['Q30', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q30 property:P36 ?t . ?t rdf:type ontology:Q56061 }
New York City Washington, D.C.
New York City and Washington, D.C. are the capitals of United States of America
New York City Washington, D.C.
action filter_type
action find
entity United States of America
relation capital
type administrative territorial entity
['United States of America', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:United_States_of_America property:capital ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q61
P138
Q502895
USER
What is that administrative territory named after ?
(Q61,P138,c(Q502895))
action filter_type
action find
entity Q61
relation P138
type Q502895
['Q61', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q61 property:P138 ?w . ?w rdf:type ontology:Q502895 }
Washington, D.C.
action filter_type
action find
entity Washington, D.C.
relation named after
type common name
['Washington, D.C.', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Washington,_D.C. property:named_after ?w . ?w rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q60
SYSTEM
Did you mean New York City ?
Q60 Q61
(Q60,P138,c(Q502895)) (Q61,P138,c(Q502895))
[ANSWER]
['Q60', 'P138', {'concept': 'Q502895'}] ['Q61', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q61 property:P138 ?w . ?w rdf:type ontology:Q502895 }
New York City Washington, D.C.
Did you mean New York City ?
New York City
['New York City', 'named after', {'concept': 'common name'}] ['Washington, D.C.', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Washington,_D.C. property:named_after ?w . ?w rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Washington, D.C.. Could you tell me the answer for that?
(Q61,P138,c(Q502895))
Q61
['Q61', 'P138', {'concept': 'Q502895'}]
['Washington, D.C.', 'named after', {'concept': 'common name'}]
[]
Q23
SYSTEM
George Washington
Q23
(Q61,P138,c(Q502895))
action filter_type
action find
entity Q61
relation P138
type Q502895
That administrative territory named after is the [ANSWER]
['Q61', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q61 property:P138 ?w . ?w rdf:type ontology:Q502895 }
George Washington
That administrative territory named after is the George Washington
George Washington
action filter_type
action find
entity Washington, D.C.
relation named after
type common name
['Washington, D.C.', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Washington,_D.C. property:named_after ?w . ?w rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q15416
USER
How many television programs have been dubbed by exactly 5 people ?
(c(Q15416),P725,c(Q502895))
action count
action equal
action find_tuple_counts
relation P725
type Q15416
type Q502895
value 5
[{'concept': 'Q15416'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { FILTER ( ?p = 5 ) . { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?p ) WHERE { ?s property:P725 ?u . ?s rdf:type ontology:Q15416 . ?u rdf:type ontology:Q502895 } GROUP BY ?s } }
action count
action equal
action find_tuple_counts
relation voice actor
type television program
type common name
value 5
[{'concept': 'television program'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { FILTER ( ?p = 5 ) . { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?p ) WHERE { ?s property:voice_actor ?u . ?s rdf:type ontology:television_program . ?u rdf:type ontology:common_name } GROUP BY ?s } }
[]
common name television program
SYSTEM
5
Q689114 Q18579178 Q20899576 Q1143800 Q331031
(c(Q15416),P725,c(Q502895))
action count
action equal
action find_tuple_counts
relation P725
type Q15416
type Q502895
value 5
[ANSWER]
[{'concept': 'Q15416'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { FILTER ( ?p = 5 ) . { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?p ) WHERE { ?s property:P725 ?u . ?s rdf:type ontology:Q15416 . ?u rdf:type ontology:Q502895 } GROUP BY ?s } }
Digimon Adventure Kabaneri of the Iron Fortress Shimmer and Shine Postman Pat Dora the Explorer
5
action count
action equal
action find_tuple_counts
relation voice actor
type television program
type common name
value 5
[{'concept': 'television program'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { FILTER ( ?p = 5 ) . { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?p ) WHERE { ?s property:voice_actor ?u . ?s rdf:type ontology:television_program . ?u rdf:type ontology:common_name } GROUP BY ?s } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11268
P361
Q2145277
USER
What is a component of United States Congress ?
(c(Q2145277),P361,Q11268)
action filter_type
action find_reverse
entity Q11268
relation P361
type Q2145277
[{'concept': 'Q2145277'}, 'P361', 'Q11268']
SELECT DISTINCT ?j WHERE { ?j property:P361 resource:Q11268 . ?j rdf:type ontology:Q2145277 }
United States Congress
action filter_type
action find_reverse
entity United States Congress
relation part of
type House of Representatives
[{'concept': 'House of Representatives'}, 'part of', 'United States Congress']
SELECT DISTINCT ?j WHERE { ?j property:part_of resource:United_States_Congress . ?j rdf:type ontology:House_of_Representatives }
[]
House of Representatives
Q11701
SYSTEM
United States House of Representatives
Q11701
(c(Q2145277),P361,Q11268)
action filter_type
action find_reverse
entity Q11268
relation P361
type Q2145277
A component of United States Congress is the [ANSWER]
[{'concept': 'Q2145277'}, 'P361', 'Q11268']
SELECT DISTINCT ?j WHERE { ?j property:P361 resource:Q11268 . ?j rdf:type ontology:Q2145277 }
United States House of Representatives
A component of United States Congress is the United States House of Representatives
United States House of Representatives
action filter_type
action find_reverse
entity United States Congress
relation part of
type House of Representatives
[{'concept': 'House of Representatives'}, 'part of', 'United States Congress']
SELECT DISTINCT ?j WHERE { ?j property:part_of resource:United_States_Congress . ?j rdf:type ontology:House_of_Representatives }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11701
P488
Q502895
USER
Which person was the chairperson of that House of Representatives ?
(Q11701,P488,c(Q502895))
action filter_type
action find
entity Q11701
relation P488
type Q502895
['Q11701', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q11701 property:P488 ?j . ?j rdf:type ontology:Q502895 }
United States House of Representatives
action filter_type
action find
entity United States House of Representatives
relation chairperson
type common name
['United States House of Representatives', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:United_States_House_of_Representatives property:chairperson ?j . ?j rdf:type ontology:common_name }
[]
common name
Q11702
SYSTEM
John Boehner
Q11702
(Q11701,P488,c(Q502895))
action filter_type
action find
entity Q11701
relation P488
type Q502895
[ANSWER] was the chairperson of that House of Representatives
['Q11701', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q11701 property:P488 ?j . ?j rdf:type ontology:Q502895 }
John Boehner
John Boehner was the chairperson of that House of Representatives
John Boehner
action filter_type
action find
entity United States House of Representatives
relation chairperson
type common name
['United States House of Representatives', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:United_States_House_of_Representatives property:chairperson ?j . ?j rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q11702 Q6277281
P991
Q1076105
USER
Did Jordanian parliamentary election, 1954 have that person as its successful candidate ?
(Q6277281,P991,Q11702)
action is_in
entity Q6277281
action find
entity Q11702
relation P991
['Q6277281', 'P991', 'Q11702']
ASK WHERE { resource:Q11702 property:P991 resource:Q6277281 }
John Boehner Jordanian parliamentary election, 1954
action is_in
entity Jordanian parliamentary election, 1954
action find
entity John Boehner
relation successful candidate
['Jordanian parliamentary election, 1954', 'successful candidate', 'John Boehner']
ASK WHERE { resource:John_Boehner property:successful_candidate resource:Jordanian_parliamentary_election,_1954 }
[]
general election
SYSTEM
NO
(Q6277281,P991,Q11702)
action is_in
entity Q6277281
action find
entity Q11702
relation P991
[ANSWER]
['Q6277281', 'P991', 'Q11702']
ASK WHERE { resource:Q11702 property:P991 resource:Q6277281 }
No
action is_in
entity Jordanian parliamentary election, 1954
action find
entity John Boehner
relation successful candidate
['Jordanian parliamentary election, 1954', 'successful candidate', 'John Boehner']
ASK WHERE { resource:John_Boehner property:successful_candidate resource:Jordanian_parliamentary_election,_1954 }
[]