Simple Question (Direct)
Simple Question
Q6167069
P102
Q7210356
USER
Which party is Jay R. Moyer affiliated with ?
(Q6167069,P102,c(Q7210356))
action filter_type
action find
entity Q6167069
relation P102
type Q7210356
['Q6167069', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?m WHERE { resource:Q6167069 property:P102 ?m . ?m rdf:type ontology:Q7210356 }
Jay R. Moyer
action filter_type
action find
entity Jay R. Moyer
relation member of political party
type political organization
['Jay R. Moyer', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?m WHERE { resource:Jay_R._Moyer property:member_of_political_party ?m . ?m rdf:type ontology:political_organization }
[]
political organization
Q29468
SYSTEM
Republican Party
Q29468
(Q6167069,P102,c(Q7210356))
action filter_type
action find
entity Q6167069
relation P102
type Q7210356
Jay R. Moyer is affiliated with [ANSWER]
['Q6167069', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?m WHERE { resource:Q6167069 property:P102 ?m . ?m rdf:type ontology:Q7210356 }
Republican Party
Jay R. Moyer is affiliated with Republican Party
Republican Party
action filter_type
action find
entity Jay R. Moyer
relation member of political party
type political organization
['Jay R. Moyer', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?m WHERE { resource:Jay_R._Moyer property:member_of_political_party ?m . ?m rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6167069
P937
Q852446
USER
Which is the work location of that person ?
(Q29468,P937,c(Q852446))
action filter_type
action find
entity Q6167069
relation P937
type Q852446
['Q29468', 'P937', {'concept': 'Q852446'}]
SELECT DISTINCT ?d WHERE { resource:Q6167069 property:P937 ?d . ?d rdf:type ontology:Q852446 }
Jay R. Moyer
action filter_type
action find
entity Jay R. Moyer
relation work location
type administrative territorial entity of the United States
['Republican Party', 'work location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?d WHERE { resource:Jay_R._Moyer property:work_location ?d . ?d rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
administrative territorial entity of the United States
Q25280
SYSTEM
Harrisburg
Q25280
(Q29468,P937,c(Q852446))
action filter_type
action find
entity Q6167069
relation P937
type Q852446
The work location of that person is in [ANSWER]
['Q29468', 'P937', {'concept': 'Q852446'}]
SELECT DISTINCT ?d WHERE { resource:Q6167069 property:P937 ?d . ?d rdf:type ontology:Q852446 }
Harrisburg
The work location of that person is in Harrisburg
Harrisburg
action filter_type
action find
entity Jay R. Moyer
relation work location
type administrative territorial entity of the United States
['Republican Party', 'work location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?d WHERE { resource:Jay_R._Moyer property:work_location ?d . ?d rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q15030034 Q6167069
P69
Q163740
USER
Which nonprofit organizations were Jay R. Moyer and June Buchanan educated ?
AND((Q6167069,P69,c(Q163740)), (Q15030034,P69,c(Q163740)))
action filter_type
action intersection
action find
entity Q6167069
relation P69
action find
entity Q15030034
relation P69
type Q163740
{'AND': [['Q6167069', 'P69', {'concept': 'Q163740'}], ['Q15030034', 'P69', {'concept': 'Q163740'}]]}
SELECT DISTINCT ?x WHERE { resource:Q6167069 property:P69 ?x . resource:Q15030034 property:P69 ?x . ?x rdf:type ontology:Q163740 }
June Buchanan Jay R. Moyer
action filter_type
action intersection
action find
entity Jay R. Moyer
relation educated at
action find
entity June Buchanan
relation educated at
type nonprofit organization
{'AND': [['Jay R. Moyer', 'educated at', {'concept': 'nonprofit organization'}], ['June Buchanan', 'educated at', {'concept': 'nonprofit organization'}]]}
SELECT DISTINCT ?x WHERE { resource:Jay_R._Moyer property:educated_at ?x . resource:June_Buchanan property:educated_at ?x . ?x rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q617433
SYSTEM
Syracuse University
Q617433
AND((Q6167069,P69,c(Q163740)), (Q15030034,P69,c(Q163740)))
action filter_type
action intersection
action find
entity Q6167069
relation P69
action find
entity Q15030034
relation P69
type Q163740
The [ANSWER] was Jay R. Moyer and June Buchanan educated
{'AND': [['Q6167069', 'P69', {'concept': 'Q163740'}], ['Q15030034', 'P69', {'concept': 'Q163740'}]]}
SELECT DISTINCT ?x WHERE { resource:Q6167069 property:P69 ?x . resource:Q15030034 property:P69 ?x . ?x rdf:type ontology:Q163740 }
Syracuse University
The Syracuse University was Jay R. Moyer and June Buchanan educated
Syracuse University
action filter_type
action intersection
action find
entity Jay R. Moyer
relation educated at
action find
entity June Buchanan
relation educated at
type nonprofit organization
{'AND': [['Jay R. Moyer', 'educated at', {'concept': 'nonprofit organization'}], ['June Buchanan', 'educated at', {'concept': 'nonprofit organization'}]]}
SELECT DISTINCT ?x WHERE { resource:Jay_R._Moyer property:educated_at ?x . resource:June_Buchanan property:educated_at ?x . ?x rdf:type ontology:nonprofit_organization }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P463
Q874405
USER
How many social groups were that nonprofit organization a member of ?
(Q617433,P463,c(Q874405))
action count
action filter_type
action find
entity Q617433
relation P463
type Q874405
['Q617433', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { resource:Q617433 property:P463 ?q . ?q rdf:type ontology:Q874405 }
action count
action filter_type
action find
entity Syracuse University
relation member of
type social group
['Syracuse University', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { resource:Syracuse_University property:member_of ?q . ?q rdf:type ontology:social_group }
[]
social group
SYSTEM
1
Q743812
(Q617433,P463,c(Q874405))
action count
action filter_type
action find
entity Q617433
relation P463
type Q874405
[ANSWER]
['Q617433', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { resource:Q617433 property:P463 ?q . ?q rdf:type ontology:Q874405 }
Association of American Universities
1
action count
action filter_type
action find
entity Syracuse University
relation member of
type social group
['Syracuse University', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { resource:Syracuse_University property:member_of ?q . ?q rdf:type ontology:social_group }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q25280
P1376
Q852446
USER
Which US administrative territory has Harrisburg has its first city ?
(Q25280,P1376,c(Q852446))
action filter_type
action find
entity Q25280
relation P1376
type Q852446
['Q25280', 'P1376', {'concept': 'Q852446'}]
SELECT DISTINCT ?t WHERE { resource:Q25280 property:P1376 ?t . ?t rdf:type ontology:Q852446 }
Harrisburg
action filter_type
action find
entity Harrisburg
relation capital of
type administrative territorial entity of the United States
['Harrisburg', 'capital of', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?t WHERE { resource:Harrisburg property:capital_of ?t . ?t rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
administrative territorial entity of the United States
Q1400
SYSTEM
Pennsylvania
Q1400
(Q25280,P1376,c(Q852446))
action filter_type
action find
entity Q25280
relation P1376
type Q852446
The [ANSWER] has Harrisburg has its first city
['Q25280', 'P1376', {'concept': 'Q852446'}]
SELECT DISTINCT ?t WHERE { resource:Q25280 property:P1376 ?t . ?t rdf:type ontology:Q852446 }
Pennsylvania
The Pennsylvania has Harrisburg has its first city
Pennsylvania
action filter_type
action find
entity Harrisburg
relation capital of
type administrative territorial entity of the United States
['Harrisburg', 'capital of', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?t WHERE { resource:Harrisburg property:capital_of ?t . ?t rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q28271
Q852446
USER
And how about Annapolis?
(Q28271,P1376,c(Q852446))
action filter_type
action find
entity Q28271
relation P1376
type Q852446
['Q28271', 'P1376', {'concept': 'Q852446'}]
SELECT DISTINCT ?h WHERE { resource:Q28271 property:P1376 ?h . ?h rdf:type ontology:Q852446 }
Annapolis
action filter_type
action find
entity Annapolis
relation capital of
type administrative territorial entity of the United States
['Annapolis', 'capital of', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?h WHERE { resource:Annapolis property:capital_of ?h . ?h rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
administrative territorial entity of the United States
Q1391
SYSTEM
Maryland
Q1391
(Q28271,P1376,c(Q852446))
action filter_type
action find
entity Q28271
relation P1376
type Q852446
[ANSWER]
['Q28271', 'P1376', {'concept': 'Q852446'}]
SELECT DISTINCT ?h WHERE { resource:Q28271 property:P1376 ?h . ?h rdf:type ontology:Q852446 }
Maryland
Maryland
action filter_type
action find
entity Annapolis
relation capital of
type administrative territorial entity of the United States
['Annapolis', 'capital of', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?h WHERE { resource:Annapolis property:capital_of ?h . ?h rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1391 Q16731303
P6
Q502895
USER
Is that US administrative territory the head of goverment of Larry Hogan ?
(Q1391,P6,Q16731303)
action is_in
entity Q16731303
action find
entity Q1391
relation P6
['Q1391', 'P6', 'Q16731303']
ASK WHERE { resource:Q1391 property:P6 resource:Q16731303 }
Maryland Larry Hogan
action is_in
entity Larry Hogan
action find
entity Maryland
relation head of government
['Maryland', 'head of government', 'Larry Hogan']
ASK WHERE { resource:Maryland property:head_of_government resource:Larry_Hogan }
[]
common name
SYSTEM
YES
(Q1391,P6,Q16731303)
action is_in
entity Q16731303
action find
entity Q1391
relation P6
[ANSWER]
['Q1391', 'P6', 'Q16731303']
ASK WHERE { resource:Q1391 property:P6 resource:Q16731303 }
Yes
action is_in
entity Larry Hogan
action find
entity Maryland
relation head of government
['Maryland', 'head of government', 'Larry Hogan']
ASK WHERE { resource:Maryland property:head_of_government resource:Larry_Hogan }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1588
P840
Q852446 Q15416 Q166142
USER
How many US administrative territories are more number of television programs and applications set in than Louisiana ?
(c(Q15416)|c(Q166142),P840,c(Q852446))
action count
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q852446
type Q15416
action find_reverse_tuple_counts
relation P840
type Q852446
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q1588
relation P840
type Q15416
type Q166142
[[{'concept': 'Q15416'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q852446'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { ?h property:P840 resource:Q1588 . { VALUES ( ?g ) { ( ontology:Q166142 ) ( ontology:Q15416 ) } . ?h rdf:type ?g } } } . FILTER ( ?a > ?y ) . { SELECT DISTINCT ?k ( COUNT ( ?j ) AS ?a ) WHERE { { ?j property:P840 ?k . ?k rdf:type ontology:Q852446 . ?j rdf:type ontology:Q15416 } UNION { ?j property:P840 ?k . ?k rdf:type ontology:Q852446 . ?j rdf:type ontology:Q166142 } } GROUP BY ?k } }
Louisiana
action count
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type television program
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type application
action count
action filter_multi_types
action find_reverse
entity Louisiana
relation narrative location
type television program
type application
[[{'concept': 'television program'}, {'concept': 'application'}], 'narrative location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { ?h property:narrative_location resource:Louisiana . { VALUES ( ?g ) { ( ontology:application ) ( ontology:television_program ) } . ?h rdf:type ?g } } } . FILTER ( ?a > ?y ) . { SELECT DISTINCT ?k ( COUNT ( ?j ) AS ?a ) WHERE { { ?j property:narrative_location ?k . ?k rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?j rdf:type ontology:television_program } UNION { ?j property:narrative_location ?k . ?k rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?j rdf:type ontology:application } } GROUP BY ?k } }
[]
administrative territorial entity of the United States television program application
SYSTEM
26
Q1603 Q724 Q1581 Q1537 Q1370 Q1439 Q1612 Q1384 Q99 Q1527 Q1522 Q824 Q1223 Q1166 Q816 Q771 Q812 Q1509 Q1261 Q779 Q1408 Q1558 Q173 Q797 Q1553 Q1211
(c(Q15416)|c(Q166142),P840,c(Q852446))
action count
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q852446
type Q15416
action find_reverse_tuple_counts
relation P840
type Q852446
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q1588
relation P840
type Q15416
type Q166142
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q852446'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { ?h property:P840 resource:Q1588 . { VALUES ( ?g ) { ( ontology:Q166142 ) ( ontology:Q15416 ) } . ?h rdf:type ?g } } } . FILTER ( ?a > ?y ) . { SELECT DISTINCT ?k ( COUNT ( ?j ) AS ?a ) WHERE { { ?j property:P840 ?k . ?k rdf:type ontology:Q852446 . ?j rdf:type ontology:Q15416 } UNION { ?j property:P840 ?k . ?k rdf:type ontology:Q852446 . ?j rdf:type ontology:Q166142 } } GROUP BY ?k } }
Kentucky Maine Missouri Wisconsin Virginia Texas Arkansas New York California Minnesota New Mexico Oregon Washington Michigan Arizona Massachusetts Florida Tennessee Colorado Connecticut New Jersey Kansas Alabama Alaska Nebraska South Dakota
26
action count
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type television program
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type application
action count
action filter_multi_types
action find_reverse
entity Louisiana
relation narrative location
type television program
type application
[[{'concept': 'television program'}, {'concept': 'application'}], 'narrative location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { ?h property:narrative_location resource:Louisiana . { VALUES ( ?g ) { ( ontology:application ) ( ontology:television_program ) } . ?h rdf:type ?g } } } . FILTER ( ?a > ?y ) . { SELECT DISTINCT ?k ( COUNT ( ?j ) AS ?a ) WHERE { { ?j property:narrative_location ?k . ?k rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?j rdf:type ontology:television_program } UNION { ?j property:narrative_location ?k . ?k rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?j rdf:type ontology:application } } GROUP BY ?k } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1454
P840
Q852446 Q15416 Q166142
USER
And what about North Carolina?
(c(Q15416)|c(Q166142),P840,c(Q852446))
action count
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q852446
type Q15416
action find_reverse_tuple_counts
relation P840
type Q852446
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q1454
relation P840
type Q15416
type Q166142
[[{'concept': 'Q15416'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q852446'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?u ) AS ?e ) WHERE { { ?u property:P840 ?n . ?n rdf:type ontology:Q852446 . ?u rdf:type ontology:Q15416 } UNION { ?u property:P840 ?n . ?n rdf:type ontology:Q852446 . ?u rdf:type ontology:Q166142 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { ?c property:P840 resource:Q1454 . { { ?c rdf:type ontology:Q15416 } UNION { ?c rdf:type ontology:Q166142 } } } } . FILTER ( ?e > ?i ) }
North Carolina
action count
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type television program
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type application
action count
action filter_multi_types
action find_reverse
entity North Carolina
relation narrative location
type television program
type application
[[{'concept': 'television program'}, {'concept': 'application'}], 'narrative location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?u ) AS ?e ) WHERE { { ?u property:narrative_location ?n . ?n rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?u rdf:type ontology:television_program } UNION { ?u property:narrative_location ?n . ?n rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?u rdf:type ontology:application } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { ?c property:narrative_location resource:North_Carolina . { { ?c rdf:type ontology:television_program } UNION { ?c rdf:type ontology:application } } } } . FILTER ( ?e > ?i ) }
[]
administrative territorial entity of the United States television program application
SYSTEM
30
Q829 Q1603 Q1391 Q724 Q1581 Q1537 Q1370 Q1439 Q1612 Q1384 Q99 Q1527 Q1522 Q824 Q1227 Q1223 Q1166 Q816 Q771 Q812 Q1509 Q1261 Q779 Q1408 Q1558 Q1588 Q173 Q797 Q1553 Q1211
(c(Q15416)|c(Q166142),P840,c(Q852446))
action count
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q852446
type Q15416
action find_reverse_tuple_counts
relation P840
type Q852446
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q1454
relation P840
type Q15416
type Q166142
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q852446'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?u ) AS ?e ) WHERE { { ?u property:P840 ?n . ?n rdf:type ontology:Q852446 . ?u rdf:type ontology:Q15416 } UNION { ?u property:P840 ?n . ?n rdf:type ontology:Q852446 . ?u rdf:type ontology:Q166142 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { ?c property:P840 resource:Q1454 . { { ?c rdf:type ontology:Q15416 } UNION { ?c rdf:type ontology:Q166142 } } } } . FILTER ( ?e > ?i ) }
Utah Kentucky Maryland Maine Missouri Wisconsin Virginia Texas Arkansas New York California Minnesota New Mexico Oregon Nevada Washington Michigan Arizona Massachusetts Florida Tennessee Colorado Connecticut New Jersey Kansas Louisiana Alabama Alaska Nebraska South Dakota
30
action count
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type television program
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity of the United States
type application
action count
action filter_multi_types
action find_reverse
entity North Carolina
relation narrative location
type television program
type application
[[{'concept': 'television program'}, {'concept': 'application'}], 'narrative location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?u ) AS ?e ) WHERE { { ?u property:narrative_location ?n . ?n rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?u rdf:type ontology:television_program } UNION { ?u property:narrative_location ?n . ?n rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?u rdf:type ontology:application } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?i ) WHERE { ?c property:narrative_location resource:North_Carolina . { { ?c rdf:type ontology:television_program } UNION { ?c rdf:type ontology:application } } } } . FILTER ( ?e > ?i ) }
[]