Simple Question (Direct)
Simple Question
Q16731298
P136
Q151885
USER
What is the genre of JJ Lawhorn ?
(Q16731298,P136,c(Q151885))
action filter_type
action find
entity Q16731298
relation P136
type Q151885
['Q16731298', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?r WHERE { resource:Q16731298 property:P136 ?r . ?r rdf:type ontology:Q151885 }
JJ Lawhorn
action filter_type
action find
entity JJ Lawhorn
relation genre
type concept
['JJ Lawhorn', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?r WHERE { resource:JJ_Lawhorn property:genre ?r . ?r rdf:type ontology:concept }
[]
concept
Q83440
SYSTEM
country music
Q83440
(Q16731298,P136,c(Q151885))
action filter_type
action find
entity Q16731298
relation P136
type Q151885
The genre of JJ Lawhorn is a [ANSWER]
['Q16731298', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?r WHERE { resource:Q16731298 property:P136 ?r . ?r rdf:type ontology:Q151885 }
country music
The genre of JJ Lawhorn is a country music
country music
action filter_type
action find
entity JJ Lawhorn
relation genre
type concept
['JJ Lawhorn', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?r WHERE { resource:JJ_Lawhorn property:genre ?r . ?r rdf:type ontology:concept }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16731298
P264
Q334453
USER
Which division sponsored the recording of that person ?
(Q83440,P264,c(Q334453))
action filter_type
action find
entity Q16731298
relation P264
type Q334453
['Q83440', 'P264', {'concept': 'Q334453'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q334453 . resource:Q16731298 property:P264 ?e }
JJ Lawhorn
action filter_type
action find
entity JJ Lawhorn
relation record label
type division
['country music', 'record label', {'concept': 'division'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:division . resource:JJ_Lawhorn property:record_label ?e }
[]
division
Q4828256
SYSTEM
Average Joes Entertainment
Q4828256
(Q83440,P264,c(Q334453))
action filter_type
action find
entity Q16731298
relation P264
type Q334453
[ANSWER] sponsored the recording of that person
['Q83440', 'P264', {'concept': 'Q334453'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q334453 . resource:Q16731298 property:P264 ?e }
Average Joes Entertainment
Average Joes Entertainment sponsored the recording of that person
Average Joes Entertainment
action filter_type
action find
entity JJ Lawhorn
relation record label
type division
['country music', 'record label', {'concept': 'division'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:division . resource:JJ_Lawhorn property:record_label ?e }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q4828256
P264
Q502895 Q2088357
USER
How many people and musical ensembles have been sponsored by Average Joes Entertainment for their recording ?
(c(Q502895),P264,Q4828256) (c(Q2088357),P264,Q4828256)
action count
action union
action filter_type
action find_reverse
entity Q4828256
relation P264
type Q502895
action filter_type
action find_reverse
entity Q4828256
relation P264
type Q2088357
[{'concept': 'Q502895'}, 'P264', 'Q4828256'] [{'concept': 'Q2088357'}, 'P264', 'Q4828256']
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { { ?o property:P264 resource:Q4828256 . ?o rdf:type ontology:Q2088357 } UNION { ?o property:P264 resource:Q4828256 . ?o rdf:type ontology:Q502895 } }
Average Joes Entertainment
action count
action union
action filter_type
action find_reverse
entity Average Joes Entertainment
relation record label
type common name
action filter_type
action find_reverse
entity Average Joes Entertainment
relation record label
type musical ensemble
[{'concept': 'common name'}, 'record label', 'Average Joes Entertainment'] [{'concept': 'musical ensemble'}, 'record label', 'Average Joes Entertainment']
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { { ?o property:record_label resource:Average_Joes_Entertainment . ?o rdf:type ontology:musical_ensemble } UNION { ?o property:record_label resource:Average_Joes_Entertainment . ?o rdf:type ontology:common_name } }
[]
common name musical ensemble
SYSTEM
11 people and 5 musical ensembles
Q1099640 Q1059447 Q12988590 Q5170443 Q16731298 Q1190454 Q18155674 Q3195701 Q6107813 Q364526 Q1111988 Q7745079 Q6663066 Q7323397 Q4957684 Q6789394
(c(Q502895),P264,Q4828256) (c(Q2088357),P264,Q4828256)
action count
action union
action filter_type
action find_reverse
entity Q4828256
relation P264
type Q502895
action filter_type
action find_reverse
entity Q4828256
relation P264
type Q2088357
[ANSWER]
[{'concept': 'Q502895'}, 'P264', 'Q4828256'] [{'concept': 'Q2088357'}, 'P264', 'Q4828256']
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { { ?o property:P264 resource:Q4828256 . ?o rdf:type ontology:Q2088357 } UNION { ?o property:P264 resource:Q4828256 . ?o rdf:type ontology:Q502895 } }
Cledus T. Judd Josh Gracin Lenny Cooper Corey Smith JJ Lawhorn Montgomery Gentry Moonshine Bandits Kevin Fowler JB and the Moonshine Band Bizarre Colt Ford The Lacs LoCash Cowboys Rich O'Toole Brantley Gilbert Matt Stillwell
11 people and 5 musical ensembles
action count
action union
action filter_type
action find_reverse
entity Average Joes Entertainment
relation record label
type common name
action filter_type
action find_reverse
entity Average Joes Entertainment
relation record label
type musical ensemble
[{'concept': 'common name'}, 'record label', 'Average Joes Entertainment'] [{'concept': 'musical ensemble'}, 'record label', 'Average Joes Entertainment']
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { { ?o property:record_label resource:Average_Joes_Entertainment . ?o rdf:type ontology:musical_ensemble } UNION { ?o property:record_label resource:Average_Joes_Entertainment . ?o rdf:type ontology:common_name } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16731298
P735
Q82799
USER
Which name is JJ Lawhorn known by ?
(Q16731298,P735,c(Q82799))
action filter_type
action find
entity Q16731298
relation P735
type Q82799
['Q16731298', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?q WHERE { resource:Q16731298 property:P735 ?q . ?q rdf:type ontology:Q82799 }
JJ Lawhorn
action filter_type
action find
entity JJ Lawhorn
relation given name
type name
['JJ Lawhorn', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?q WHERE { resource:JJ_Lawhorn property:given_name ?q . ?q rdf:type ontology:name }
[]
name
Q20098789
SYSTEM
J.J.
Q20098789
(Q16731298,P735,c(Q82799))
action filter_type
action find
entity Q16731298
relation P735
type Q82799
JJ Lawhorn is known as [ANSWER]
['Q16731298', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?q WHERE { resource:Q16731298 property:P735 ?q . ?q rdf:type ontology:Q82799 }
J.J.
JJ Lawhorn is known as J.J.
J.J.
action filter_type
action find
entity JJ Lawhorn
relation given name
type name
['JJ Lawhorn', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?q WHERE { resource:JJ_Lawhorn property:given_name ?q . ?q rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16731298
P27
Q15617994
USER
Which administrative territory is the native country of JJ Lawhorn ?
(Q16731298,P27,c(Q15617994))
action filter_type
action find
entity Q16731298
relation P27
type Q15617994
['Q16731298', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q16731298 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
JJ Lawhorn
action filter_type
action find
entity JJ Lawhorn
relation country of citizenship
type designation for an administrative territorial entity
['JJ Lawhorn', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:JJ_Lawhorn property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q16731298,P27,c(Q15617994))
action filter_type
action find
entity Q16731298
relation P27
type Q15617994
The [ANSWER] is the native country of JJ Lawhorn
['Q16731298', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q16731298 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
United States of America
The United States of America is the native country of JJ Lawhorn
United States of America
action filter_type
action find
entity JJ Lawhorn
relation country of citizenship
type designation for an administrative territorial entity
['JJ Lawhorn', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:JJ_Lawhorn property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q30 Q805 Q5195175
P530
Q15617994
USER
Does that administrative territory have diplomatic relations with Yemen and Currituck County Schools ?
(Q30,P530,Q805) (Q30,P530,Q5195175)
action is_in
entity Q30
action intersection
action find_reverse
entity Q805
relation P530
action find_reverse
entity Q5195175
relation P530
['Q30', 'P530', 'Q805'] ['Q30', 'P530', 'Q5195175']
ASK WHERE { resource:Q30 property:P530 resource:Q805 . resource:Q30 property:P530 resource:Q5195175 }
United States of America Yemen Currituck County Schools
action is_in
entity United States of America
action intersection
action find_reverse
entity Yemen
relation diplomatic relation
action find_reverse
entity Currituck County Schools
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Yemen'] ['United States of America', 'diplomatic relation', 'Currituck County Schools']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation resource:Yemen . resource:United_States_of_America property:diplomatic_relation resource:Currituck_County_Schools }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q30,P530,Q805) (Q30,P530,Q5195175)
action is_in
entity Q30
action intersection
action find_reverse
entity Q805
relation P530
action find_reverse
entity Q5195175
relation P530
[ANSWER]
['Q30', 'P530', 'Q805'] ['Q30', 'P530', 'Q5195175']
ASK WHERE { resource:Q30 property:P530 resource:Q805 . resource:Q30 property:P530 resource:Q5195175 }
YES and NO respectively
action is_in
entity United States of America
action intersection
action find_reverse
entity Yemen
relation diplomatic relation
action find_reverse
entity Currituck County Schools
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Yemen'] ['United States of America', 'diplomatic relation', 'Currituck County Schools']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation resource:Yemen . resource:United_States_of_America property:diplomatic_relation resource:Currituck_County_Schools }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q56061 Q502895 Q15617994
USER
Which administrative territories are the eponym of exactly 2 administrative territories and people ?
(c(Q15617994),P138,c(Q56061)|c(Q502895))
action equal
action union
action find_tuple_counts
relation P138
type Q15617994
type Q56061
action find_tuple_counts
relation P138
type Q15617994
type Q502895
value 2
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q56061'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) ?n WHERE { { ?n rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q56061 . ?n property:P138 ?g } UNION { ?n property:P138 ?g . ?n rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q502895 } } GROUP BY ?n } . FILTER ( ?z = 2 ) }
action equal
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type administrative territorial entity
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type common name
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'administrative territorial entity'}, {'concept': 'common name'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) ?n WHERE { { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:administrative_territorial_entity . ?n property:named_after ?g } UNION { ?n property:named_after ?g . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:common_name } } GROUP BY ?n } . FILTER ( ?z = 2 ) }
[]
administrative territorial entity common name designation for an administrative territorial entity
Q786 Q4066675 Q13401101
SYSTEM
Dominican Republic, Annino, Brandon Valley School District
Q786 Q4066675 Q13401101
(c(Q15617994),P138,c(Q56061)|c(Q502895))
action equal
action union
action find_tuple_counts
relation P138
type Q15617994
type Q56061
action find_tuple_counts
relation P138
type Q15617994
type Q502895
value 2
[ANSWERS] are the eponym of exactly 2 administrative territories and people
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q56061'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) ?n WHERE { { ?n rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q56061 . ?n property:P138 ?g } UNION { ?n property:P138 ?g . ?n rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q502895 } } GROUP BY ?n } . FILTER ( ?z = 2 ) }
Dominican Republic Annino Brandon Valley School District
Dominican Republic, Annino and Brandon Valley School District are the eponym of exactly 2 administrative territories and people
Dominican Republic Annino Brandon Valley School District
action equal
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type administrative territorial entity
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type common name
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'administrative territorial entity'}, {'concept': 'common name'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) ?n WHERE { { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:administrative_territorial_entity . ?n property:named_after ?g } UNION { ?n property:named_after ?g . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:common_name } } GROUP BY ?n } . FILTER ( ?z = 2 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q786
P159
Q874405
USER
Which social group has its HQ location at that administrative territory ?
(c(Q874405),P159,Q786)
action filter_type
action find_reverse
entity Q786
relation P159
type Q874405
[{'concept': 'Q874405'}, 'P159', 'Q786']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q874405 . ?j property:P159 resource:Q786 }
Dominican Republic
action filter_type
action find_reverse
entity Dominican Republic
relation headquarters location
type social group
[{'concept': 'social group'}, 'headquarters location', 'Dominican Republic']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:social_group . ?j property:headquarters_location resource:Dominican_Republic }
[]
social group
Clarification for simple ques.
Q13401101
SYSTEM
Did you mean Brandon Valley School District ?
Q786 Q4066675 Q13401101
(c(Q874405),P159,Q786) (c(Q874405),P159,Q4066675) (c(Q874405),P159,Q13401101)
[ANSWER]
[{'concept': 'Q874405'}, 'P159', 'Q786'] [{'concept': 'Q874405'}, 'P159', 'Q4066675'] [{'concept': 'Q874405'}, 'P159', 'Q13401101']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q874405 . ?j property:P159 resource:Q786 }
Dominican Republic Annino Brandon Valley School District
Did you mean Brandon Valley School District ?
Brandon Valley School District
[{'concept': 'social group'}, 'headquarters location', 'Dominican Republic'] [{'concept': 'social group'}, 'headquarters location', 'Annino'] [{'concept': 'social group'}, 'headquarters location', 'Brandon Valley School District']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:social_group . ?j property:headquarters_location resource:Dominican_Republic }
[]
Simple Question (Coreferenced)
USER
No, I meant Dominican Republic. Could you tell me the answer for that?
(c(Q874405),P159,Q786)
Q786
[{'concept': 'Q874405'}, 'P159', 'Q786']
[{'concept': 'social group'}, 'headquarters location', 'Dominican Republic']
[]
Q1024114
SYSTEM
COPPPAL
Q1024114
(c(Q874405),P159,Q786)
action filter_type
action find_reverse
entity Q786
relation P159
type Q874405
[ANSWER] has its HQ location at that administrative territory
[{'concept': 'Q874405'}, 'P159', 'Q786']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q874405 . ?j property:P159 resource:Q786 }
COPPPAL
COPPPAL has its HQ location at that administrative territory
COPPPAL
action filter_type
action find_reverse
entity Dominican Republic
relation headquarters location
type social group
[{'concept': 'social group'}, 'headquarters location', 'Dominican Republic']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:social_group . ?j property:headquarters_location resource:Dominican_Republic }
[]