Simple Question (Direct)
Simple Question
Q7909123
P735
Q82799
USER
What the name that Val Paul is known by ?
(Q7909123,P735,c(Q82799))
action filter_type
action find
entity Q7909123
relation P735
type Q82799
['Q7909123', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?a WHERE { resource:Q7909123 property:P735 ?a . ?a rdf:type ontology:Q82799 }
Val Paul
action filter_type
action find
entity Val Paul
relation given name
type name
['Val Paul', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?a WHERE { resource:Val_Paul property:given_name ?a . ?a rdf:type ontology:name }
[]
name
Q21074392
SYSTEM
Val
Q21074392
(Q7909123,P735,c(Q82799))
action filter_type
action find
entity Q7909123
relation P735
type Q82799
Known [ANSWER]
['Q7909123', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?a WHERE { resource:Q7909123 property:P735 ?a . ?a rdf:type ontology:Q82799 }
Val
Known Val
Val
action filter_type
action find
entity Val Paul
relation given name
type name
['Val Paul', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?a WHERE { resource:Val_Paul property:given_name ?a . ?a rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7909123
P162
Q838948
USER
Which work of art has been produced by that person ?
(c(Q838948),P162,Q21074392)
action filter_type
action find_reverse
entity Q7909123
relation P162
type Q838948
[{'concept': 'Q838948'}, 'P162', 'Q21074392']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q838948 . ?o property:P162 resource:Q7909123 }
Val Paul
action filter_type
action find_reverse
entity Val Paul
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Val']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:work_of_art . ?o property:producer resource:Val_Paul }
[]
work of art
Q8051978
SYSTEM
Yellowstone
Q8051978
(c(Q838948),P162,Q21074392)
action filter_type
action find_reverse
entity Q7909123
relation P162
type Q838948
[ANSWER] has been produced by that person
[{'concept': 'Q838948'}, 'P162', 'Q21074392']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q838948 . ?o property:P162 resource:Q7909123 }
Yellowstone
Yellowstone has been produced by that person
Yellowstone
action filter_type
action find_reverse
entity Val Paul
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Val']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:work_of_art . ?o property:producer resource:Val_Paul }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q16026958 Q7909123
P19 P20
Q56061
USER
Which administrative territories are the birthplace of Val Paul or did Eugene Robert Black die ?
OR((Q7909123,P19,c(Q56061)), (Q16026958,P20,c(Q56061)))
action filter_type
action union
action find
entity Q7909123
relation P19
action find
entity Q16026958
relation P20
type Q56061
{'OR': [['Q7909123', 'P19', {'concept': 'Q56061'}], ['Q16026958', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . { { resource:Q7909123 property:P19 ?p } UNION { resource:Q16026958 property:P20 ?p } } }
Eugene Robert Black Val Paul
action filter_type
action union
action find
entity Val Paul
relation place of birth
action find
entity Eugene Robert Black
relation place of death
type administrative territorial entity
{'OR': [['Val Paul', 'place of birth', {'concept': 'administrative territorial entity'}], ['Eugene Robert Black', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . { { resource:Val_Paul property:place_of_birth ?p } UNION { resource:Eugene_Robert_Black property:place_of_death ?p } } }
[]
administrative territorial entity
Q16554 Q23556
SYSTEM
Denver, Atlanta
Q16554 Q23556
OR((Q7909123,P19,c(Q56061)), (Q16026958,P20,c(Q56061)))
action filter_type
action union
action find
entity Q7909123
relation P19
action find
entity Q16026958
relation P20
type Q56061
[ANSWERS] are the birthplace of Val Paul or did Eugene Robert Black die
{'OR': [['Q7909123', 'P19', {'concept': 'Q56061'}], ['Q16026958', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . { { resource:Q7909123 property:P19 ?p } UNION { resource:Q16026958 property:P20 ?p } } }
Denver Atlanta
Denver and Atlanta are the birthplace of Val Paul or did Eugene Robert Black die
Denver Atlanta
action filter_type
action union
action find
entity Val Paul
relation place of birth
action find
entity Eugene Robert Black
relation place of death
type administrative territorial entity
{'OR': [['Val Paul', 'place of birth', {'concept': 'administrative territorial entity'}], ['Eugene Robert Black', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . { { resource:Val_Paul property:place_of_birth ?p } UNION { resource:Eugene_Robert_Black property:place_of_death ?p } } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q16554 Q23556
P740
Q215380
USER
What were formed at those administrative territories ?
(c(Q215380),P740,Q16554) (c(Q215380),P740,Q23556)
action filter_type
action find_reverse
entity prev_answer
relation P740
type Q215380
[{'concept': 'Q215380'}, 'P740', 'Q16554'] [{'concept': 'Q215380'}, 'P740', 'Q23556']
SELECT DISTINCT ?y WHERE { ?y property:P740 ?o . ?y rdf:type ontology:Q215380 . VALUES ( ?o ) { ( resource:Q16554 ) ( resource:Q23556 ) } }
Denver Atlanta
action filter_type
action find_reverse
entity prev_answer
relation location of formation
type band
[{'concept': 'band'}, 'location of formation', 'Denver'] [{'concept': 'band'}, 'location of formation', 'Atlanta']
SELECT DISTINCT ?y WHERE { ?y property:location_of_formation ?o . ?y rdf:type ontology:band . VALUES ( ?o ) { ( resource:Denver ) ( resource:Atlanta ) } }
[]
band
Q312706 Q726773 Q496101
SYSTEM
Magnapop, Gnarls Barkley, The Lumineers
Q496101 Q2688212 Q726773 Q1361074 Q312706 Q942668 Q1683782 Q472595 Q772035 Q741801
(c(Q215380),P740,Q16554) (c(Q215380),P740,Q23556)
action filter_type
action find_reverse
entity prev_answer
relation P740
type Q215380
[ANSWERS] were formed at those administrative territories
[{'concept': 'Q215380'}, 'P740', 'Q16554'] [{'concept': 'Q215380'}, 'P740', 'Q23556']
SELECT DISTINCT ?y WHERE { ?y property:P740 ?o . ?y rdf:type ontology:Q215380 . VALUES ( ?o ) { ( resource:Q16554 ) ( resource:Q23556 ) } }
The Lumineers The Brains Gnarls Barkley Kris Kross Magnapop Ying Yang Twins The Georgia Satellites Outkast Indigo Girls Sevendust
Magnapop, Gnarls Barkley and The Lumineers were formed at those administrative territories
Magnapop Gnarls Barkley The Lumineers
action filter_type
action find_reverse
entity prev_answer
relation location of formation
type band
[{'concept': 'band'}, 'location of formation', 'Denver'] [{'concept': 'band'}, 'location of formation', 'Atlanta']
SELECT DISTINCT ?y WHERE { ?y property:location_of_formation ?o . ?y rdf:type ontology:band . VALUES ( ?o ) { ( resource:Denver ) ( resource:Atlanta ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q496101
P800
Q2031291
USER
What was notable work done by that band ?
(Q496101,P800,c(Q2031291))
action filter_type
action find
entity Q496101
relation P800
type Q2031291
['Q496101', 'P800', {'concept': 'Q2031291'}]
SELECT DISTINCT ?j WHERE { resource:Q496101 property:P800 ?j . ?j rdf:type ontology:Q2031291 }
The Lumineers
action filter_type
action find
entity The Lumineers
relation notable work
type release
['The Lumineers', 'notable work', {'concept': 'release'}]
SELECT DISTINCT ?j WHERE { resource:The_Lumineers property:notable_work ?j . ?j rdf:type ontology:release }
[]
release
Clarification for simple ques.
Q312706
SYSTEM
Did you mean Magnapop ?
Q312706 Q726773 Q496101
(Q312706,P800,c(Q2031291)) (Q726773,P800,c(Q2031291)) (Q496101,P800,c(Q2031291))
[ANSWER]
['Q312706', 'P800', {'concept': 'Q2031291'}] ['Q726773', 'P800', {'concept': 'Q2031291'}] ['Q496101', 'P800', {'concept': 'Q2031291'}]
SELECT DISTINCT ?j WHERE { resource:Q496101 property:P800 ?j . ?j rdf:type ontology:Q2031291 }
Magnapop Gnarls Barkley The Lumineers
Did you mean Magnapop ?
Magnapop
['Magnapop', 'notable work', {'concept': 'release'}] ['Gnarls Barkley', 'notable work', {'concept': 'release'}] ['The Lumineers', 'notable work', {'concept': 'release'}]
SELECT DISTINCT ?j WHERE { resource:The_Lumineers property:notable_work ?j . ?j rdf:type ontology:release }
[]
Simple Question (Coreferenced)
USER
No, I meant The Lumineers. Could you tell me the answer for that?
(Q496101,P800,c(Q2031291))
Q496101
['Q496101', 'P800', {'concept': 'Q2031291'}]
['The Lumineers', 'notable work', {'concept': 'release'}]
[]
Q23797735
SYSTEM
Cleopatra
Q23797735
(Q496101,P800,c(Q2031291))
action filter_type
action find
entity Q496101
relation P800
type Q2031291
Notable work done by that band was called [ANSWER]
['Q496101', 'P800', {'concept': 'Q2031291'}]
SELECT DISTINCT ?j WHERE { resource:Q496101 property:P800 ?j . ?j rdf:type ontology:Q2031291 }
Cleopatra
Notable work done by that band was called Cleopatra
Cleopatra
action filter_type
action find
entity The Lumineers
relation notable work
type release
['The Lumineers', 'notable work', {'concept': 'release'}]
SELECT DISTINCT ?j WHERE { resource:The_Lumineers property:notable_work ?j . ?j rdf:type ontology:release }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q1860 Q312706
P175 P407
Q2031291
USER
Which releases performed Magnapop and are composed in English ?
AND((c(Q2031291),P175,Q312706), (c(Q2031291),P407,Q1860))
action filter_type
action intersection
action find_reverse
entity Q312706
relation P175
action find_reverse
entity Q1860
relation P407
type Q2031291
{'AND': [[{'concept': 'Q2031291'}, 'P175', 'Q312706'], [{'concept': 'Q2031291'}, 'P407', 'Q1860']]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q2031291 . ?l property:P175 resource:Q312706 . ?l property:P407 resource:Q1860 }
English Magnapop
action filter_type
action intersection
action find_reverse
entity Magnapop
relation performer
action find_reverse
entity English
relation language of work or name
type release
{'AND': [[{'concept': 'release'}, 'performer', 'Magnapop'], [{'concept': 'release'}, 'language of work or name', 'English']]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:release . ?l property:performer resource:Magnapop . ?l property:language_of_work_or_name resource:English }
[]
release
Q6731281 Q6926363 Q7375861
SYSTEM
Magnapop, Mouthfeel, Rubbing Doesn't Help
Q6731281 Q6926363 Q7375861
AND((c(Q2031291),P175,Q312706), (c(Q2031291),P407,Q1860))
action filter_type
action intersection
action find_reverse
entity Q312706
relation P175
action find_reverse
entity Q1860
relation P407
type Q2031291
Magnapop, Mouthfeel and rubbing Doesn't Help performed Magnapop and are composed in English
{'AND': [[{'concept': 'Q2031291'}, 'P175', 'Q312706'], [{'concept': 'Q2031291'}, 'P407', 'Q1860']]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q2031291 . ?l property:P175 resource:Q312706 . ?l property:P407 resource:Q1860 }
Magnapop Mouthfeel Rubbing Doesn't Help
Magnapop, Mouthfeel and rubbing Doesn't Help performed Magnapop and are composed in English
Magnapop Mouthfeel Rubbing Doesn't Help
action filter_type
action intersection
action find_reverse
entity Magnapop
relation performer
action find_reverse
entity English
relation language of work or name
type release
{'AND': [[{'concept': 'release'}, 'performer', 'Magnapop'], [{'concept': 'release'}, 'language of work or name', 'English']]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:release . ?l property:performer resource:Magnapop . ?l property:language_of_work_or_name resource:English }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q16554
P190
Q56061
USER
How many administrative territories are twin cities of Denver ?
(Q16554,P190,c(Q56061))
action count
action filter_type
action find
entity Q16554
relation P190
type Q56061
['Q16554', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { resource:Q16554 property:P190 ?g . ?g rdf:type ontology:Q56061 }
Denver
action count
action filter_type
action find
entity Denver
relation sister city
type administrative territorial entity
['Denver', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { resource:Denver property:sister_city ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
5
Q1352 Q5832 Q152418 Q3543 Q1491
(Q16554,P190,c(Q56061))
action count
action filter_type
action find
entity Q16554
relation P190
type Q56061
[ANSWER]
['Q16554', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { resource:Q16554 property:P190 ?g . ?g rdf:type ontology:Q56061 }
Chennai Axum Karmiel Potenza La Paz
5
action count
action filter_type
action find
entity Denver
relation sister city
type administrative territorial entity
['Denver', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { resource:Denver property:sister_city ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q170287
Q56061
USER
And how about Subotica?
(Q170287,P190,c(Q56061))
action count
action filter_type
action find
entity Q170287
relation P190
type Q56061
['Q170287', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) WHERE { resource:Q170287 property:P190 ?e . ?e rdf:type ontology:Q56061 }
Subotica
action count
action filter_type
action find
entity Subotica
relation sister city
type administrative territorial entity
['Subotica', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) WHERE { resource:Subotica property:sister_city ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
16
(Q170287,P190,c(Q56061))
action count
action filter_type
action find
entity Q170287
relation P190
type Q56061
[ANSWER]
['Q170287', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) WHERE { resource:Q170287 property:P190 ?e . ?e rdf:type ontology:Q56061 }
16
action count
action filter_type
action find
entity Subotica
relation sister city
type administrative territorial entity
['Subotica', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) WHERE { resource:Subotica property:sister_city ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q2031291 Q482994 Q7725634
USER
Which releases are exactly 9 albums or literary works a portion of ?
(c(Q482994)|c(Q7725634),P361,c(Q2031291))
action equal
action union
action find_reverse_tuple_counts
relation P361
type Q2031291
type Q482994
action find_reverse_tuple_counts
relation P361
type Q2031291
type Q7725634
value 9
[[{'concept': 'Q482994'}, {'concept': 'Q7725634'}], 'P361', {'concept': 'Q2031291'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?j ) WHERE { VALUES ( ?m ) { ( ontology:Q482994 ) ( ontology:Q7725634 ) } . ?v rdf:type ?m } GROUP BY ?t } . FILTER ( ?j = 9 ) }
action equal
action union
action find_reverse_tuple_counts
relation part of
type release
type album
action find_reverse_tuple_counts
relation part of
type release
type literary work
value 9
[[{'concept': 'album'}, {'concept': 'literary work'}], 'part of', {'concept': 'release'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?j ) WHERE { VALUES ( ?m ) { ( ontology:album ) ( ontology:literary_work ) } . ?v rdf:type ?m } GROUP BY ?t } . FILTER ( ?j = 9 ) }
[]
release album literary work
Q2259878 Q2359129 Q685052
SYSTEM
Vintage Violence, Shifty Adventures in Nookie Wood, Paris 1919
Q2259878 Q2359129 Q685052 Q128447 Q21287593
(c(Q482994)|c(Q7725634),P361,c(Q2031291))
action equal
action union
action find_reverse_tuple_counts
relation P361
type Q2031291
type Q482994
action find_reverse_tuple_counts
relation P361
type Q2031291
type Q7725634
value 9
[ANSWERS] are exactly 9 albums or literary works a portion of
[[{'concept': 'Q482994'}, {'concept': 'Q7725634'}], 'P361', {'concept': 'Q2031291'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?j ) WHERE { VALUES ( ?m ) { ( ontology:Q482994 ) ( ontology:Q7725634 ) } . ?v rdf:type ?m } GROUP BY ?t } . FILTER ( ?j = 9 ) }
Vintage Violence Shifty Adventures in Nookie Wood Paris 1919 Artificial Intelligence Prophecy of Sound
Vintage Violence, Shifty Adventures in Nookie Wood and Paris 1919 are exactly 9 albums or literary works a portion of
Vintage Violence Shifty Adventures in Nookie Wood Paris 1919
action equal
action union
action find_reverse_tuple_counts
relation part of
type release
type album
action find_reverse_tuple_counts
relation part of
type release
type literary work
value 9
[[{'concept': 'album'}, {'concept': 'literary work'}], 'part of', {'concept': 'release'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?j ) WHERE { VALUES ( ?m ) { ( ontology:album ) ( ontology:literary_work ) } . ?v rdf:type ?m } GROUP BY ?t } . FILTER ( ?j = 9 ) }
[]