Simple Question (Direct)
Simple Question
Q476466
P27
Q15617994
USER
Which administrative territory is Martin Hellman a civilian of ?
(Q476466,P27,c(Q15617994))
action filter_type
action find
entity Q476466
relation P27
type Q15617994
['Q476466', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q476466 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
Martin Hellman
action filter_type
action find
entity Martin Hellman
relation country of citizenship
type designation for an administrative territorial entity
['Martin Hellman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Martin_Hellman property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q476466,P27,c(Q15617994))
action filter_type
action find
entity Q476466
relation P27
type Q15617994
The [ANSWER] is Martin Hellman a civilian of
['Q476466', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q476466 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
United States of America
The United States of America is Martin Hellman a civilian of
United States of America
action filter_type
action find
entity Martin Hellman
relation country of citizenship
type designation for an administrative territorial entity
['Martin Hellman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Martin_Hellman property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q476466
P184
Q502895
USER
Which people have Martin Hellman as doctoral supervisor ?
(c(Q502895),P184,Q476466)
action filter_type
action find_reverse
entity Q476466
relation P184
type Q502895
[{'concept': 'Q502895'}, 'P184', 'Q476466']
SELECT DISTINCT ?g WHERE { ?g property:P184 resource:Q476466 . ?g rdf:type ontology:Q502895 }
Martin Hellman
action filter_type
action find_reverse
entity Martin Hellman
relation doctoral advisor
type common name
[{'concept': 'common name'}, 'doctoral advisor', 'Martin Hellman']
SELECT DISTINCT ?g WHERE { ?g property:doctoral_advisor resource:Martin_Hellman . ?g rdf:type ontology:common_name }
[]
common name
Q910915 Q92884
SYSTEM
Taher Elgamal, Ralph Merkle
Q910915 Q92884
(c(Q502895),P184,Q476466)
action filter_type
action find_reverse
entity Q476466
relation P184
type Q502895
[ANSWERS] have Martin Hellman as doctoral supervisor
[{'concept': 'Q502895'}, 'P184', 'Q476466']
SELECT DISTINCT ?g WHERE { ?g property:P184 resource:Q476466 . ?g rdf:type ontology:Q502895 }
Taher Elgamal Ralph Merkle
Taher Elgamal and Ralph Merkle have Martin Hellman as doctoral supervisor
Taher Elgamal Ralph Merkle
action filter_type
action find_reverse
entity Martin Hellman
relation doctoral advisor
type common name
[{'concept': 'common name'}, 'doctoral advisor', 'Martin Hellman']
SELECT DISTINCT ?g WHERE { ?g property:doctoral_advisor resource:Martin_Hellman . ?g rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P85
Q484692
USER
What is the national anthem of United States of America ?
(Q30,P85,c(Q484692))
action filter_type
action find
entity Q30
relation P85
type Q484692
['Q30', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?i WHERE { resource:Q30 property:P85 ?i . ?i rdf:type ontology:Q484692 }
United States of America
action filter_type
action find
entity United States of America
relation anthem
type hymn
['United States of America', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?i WHERE { resource:United_States_of_America property:anthem ?i . ?i rdf:type ontology:hymn }
[]
hymn
Q44696
SYSTEM
The Star-Spangled Banner
Q44696
(Q30,P85,c(Q484692))
action filter_type
action find
entity Q30
relation P85
type Q484692
The national anthem of United States of America is [ANSWER]
['Q30', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?i WHERE { resource:Q30 property:P85 ?i . ?i rdf:type ontology:Q484692 }
The Star-Spangled Banner
The national anthem of United States of America is The Star-Spangled Banner
The Star-Spangled Banner
action filter_type
action find
entity United States of America
relation anthem
type hymn
['United States of America', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?i WHERE { resource:United_States_of_America property:anthem ?i . ?i rdf:type ontology:hymn }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q44696 Q5758013 Q948245
P495
Q15617994
USER
Does that hymn have Higher Bal and Panyu District as its place of origin ?
(Q44696,P495,Q5758013) (Q44696,P495,Q948245)
action is_in
entity Q44696
action intersection
action find_reverse
entity Q5758013
relation P495
action find_reverse
entity Q948245
relation P495
['Q44696', 'P495', 'Q5758013'] ['Q44696', 'P495', 'Q948245']
ASK WHERE { resource:Q44696 property:P495 resource:Q948245 . resource:Q44696 property:P495 resource:Q5758013 }
The Star-Spangled Banner Higher Bal Panyu District
action is_in
entity The Star-Spangled Banner
action intersection
action find_reverse
entity Higher Bal
relation country of origin
action find_reverse
entity Panyu District
relation country of origin
['The Star-Spangled Banner', 'country of origin', 'Higher Bal'] ['The Star-Spangled Banner', 'country of origin', 'Panyu District']
ASK WHERE { resource:The_Star-Spangled_Banner property:country_of_origin resource:Panyu_District . resource:The_Star-Spangled_Banner property:country_of_origin resource:Higher_Bal }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q44696,P495,Q5758013) (Q44696,P495,Q948245)
action is_in
entity Q44696
action intersection
action find_reverse
entity Q5758013
relation P495
action find_reverse
entity Q948245
relation P495
[ANSWER]
['Q44696', 'P495', 'Q5758013'] ['Q44696', 'P495', 'Q948245']
ASK WHERE { resource:Q44696 property:P495 resource:Q948245 . resource:Q44696 property:P495 resource:Q5758013 }
No
action is_in
entity The Star-Spangled Banner
action intersection
action find_reverse
entity Higher Bal
relation country of origin
action find_reverse
entity Panyu District
relation country of origin
['The Star-Spangled Banner', 'country of origin', 'Higher Bal'] ['The Star-Spangled Banner', 'country of origin', 'Panyu District']
ASK WHERE { resource:The_Star-Spangled_Banner property:country_of_origin resource:Panyu_District . resource:The_Star-Spangled_Banner property:country_of_origin resource:Higher_Bal }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q44696
P86
Q502895
USER
Who composed that hymn ?
action filter_type
action find
entity Q44696
relation P86
type Q502895
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q502895 . resource:Q44696 property:P86 ?r }
The Star-Spangled Banner
action filter_type
action find
entity The Star-Spangled Banner
relation composer
type common name
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:common_name . resource:The_Star-Spangled_Banner property:composer ?r }
[]
common name
Q563098
SYSTEM
John Stafford Smith
Q563098
action filter_type
action find
entity Q44696
relation P86
type Q502895
[ANSWER] composed that hymn
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q502895 . resource:Q44696 property:P86 ?r }
John Stafford Smith
John Stafford Smith composed that hymn
John Stafford Smith
action filter_type
action find
entity The Star-Spangled Banner
relation composer
type common name
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:common_name . resource:The_Star-Spangled_Banner property:composer ?r }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q563098 Q52069
P27
Q15617994
USER
Does John Stafford Smith belong to Caprese Michelangelo ?
(Q563098,P27,Q52069)
action is_in
entity Q52069
action find
entity Q563098
relation P27
['Q563098', 'P27', 'Q52069']
ASK WHERE { resource:Q563098 property:P27 resource:Q52069 }
John Stafford Smith Caprese Michelangelo
action is_in
entity Caprese Michelangelo
action find
entity John Stafford Smith
relation country of citizenship
['John Stafford Smith', 'country of citizenship', 'Caprese Michelangelo']
ASK WHERE { resource:John_Stafford_Smith property:country_of_citizenship resource:Caprese_Michelangelo }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q563098,P27,Q52069)
action is_in
entity Q52069
action find
entity Q563098
relation P27
[ANSWER]
['Q563098', 'P27', 'Q52069']
ASK WHERE { resource:Q563098 property:P27 resource:Q52069 }
No
action is_in
entity Caprese Michelangelo
action find
entity John Stafford Smith
relation country of citizenship
['John Stafford Smith', 'country of citizenship', 'Caprese Michelangelo']
ASK WHERE { resource:John_Stafford_Smith property:country_of_citizenship resource:Caprese_Michelangelo }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q563098
P921
Q191067
USER
Which article is that person a main subject of ?
action filter_type
action find_reverse
entity Q563098
relation P921
type Q191067
SELECT DISTINCT ?j WHERE { ?j property:P921 resource:Q563098 . ?j rdf:type ontology:Q191067 }
John Stafford Smith
action filter_type
action find_reverse
entity John Stafford Smith
relation main subject
type article
SELECT DISTINCT ?j WHERE { ?j property:main_subject resource:John_Stafford_Smith . ?j rdf:type ontology:article }
[]
article
Q19042643
SYSTEM
Smith, John Stafford (DNB00)
Q19042643
action filter_type
action find_reverse
entity Q563098
relation P921
type Q191067
[ANSWER] is that person a main subject of
SELECT DISTINCT ?j WHERE { ?j property:P921 resource:Q563098 . ?j rdf:type ontology:Q191067 }
Smith, John Stafford (DNB00)
Smith, John Stafford (DNB00) is that person a main subject of
Smith, John Stafford (DNB00)
action filter_type
action find_reverse
entity John Stafford Smith
relation main subject
type article
SELECT DISTINCT ?j WHERE { ?j property:main_subject resource:John_Stafford_Smith . ?j rdf:type ontology:article }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q838948
USER
How many works of art did exactly 6 people dub for ?
(c(Q838948),P725,c(Q502895))
action count
action equal
action find_tuple_counts
relation P725
type Q838948
type Q502895
value 6
[{'concept': 'Q838948'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?f ) AS ?h ) WHERE { ?m rdf:type ontology:Q838948 . ?f rdf:type ontology:Q502895 . ?m property:P725 ?f } GROUP BY ?m } . FILTER ( ?h = 6 ) }
action count
action equal
action find_tuple_counts
relation voice actor
type work of art
type common name
value 6
[{'concept': 'work of art'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?f ) AS ?h ) WHERE { ?m rdf:type ontology:work_of_art . ?f rdf:type ontology:common_name . ?m property:voice_actor ?f } GROUP BY ?m } . FILTER ( ?h = 6 ) }
[]
common name work of art
SYSTEM
3
Q2165639 Q1201022 Q387674
(c(Q838948),P725,c(Q502895))
action count
action equal
action find_tuple_counts
relation P725
type Q838948
type Q502895
value 6
[ANSWER]
[{'concept': 'Q838948'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?f ) AS ?h ) WHERE { ?m rdf:type ontology:Q838948 . ?f rdf:type ontology:Q502895 . ?m property:P725 ?f } GROUP BY ?m } . FILTER ( ?h = 6 ) }
Watership Down Tiger & Bunny Final Fantasy VII: Advent Children
3
action count
action equal
action find_tuple_counts
relation voice actor
type work of art
type common name
value 6
[{'concept': 'work of art'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?f ) AS ?h ) WHERE { ?m rdf:type ontology:work_of_art . ?f rdf:type ontology:common_name . ?m property:voice_actor ?f } GROUP BY ?m } . FILTER ( ?h = 6 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q476466
P106
Q12737077
USER
What do Martin Hellman do for a living ?
(Q476466,P106,c(Q12737077))
action filter_type
action find
entity Q476466
relation P106
type Q12737077
['Q476466', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q476466 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
Martin Hellman
action filter_type
action find
entity Martin Hellman
relation occupation
type occupation
['Martin Hellman', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Martin_Hellman property:occupation ?l . ?l rdf:type ontology:occupation }
[]
occupation
Q82594 Q15442776 Q170790
SYSTEM
computer scientist, cryptographer, mathematician
Q15442776 Q82594 Q170790 Q901
(Q476466,P106,c(Q12737077))
action filter_type
action find
entity Q476466
relation P106
type Q12737077
[ANSWERS] Martin Hellman do for a living
['Q476466', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q476466 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
cryptographer computer scientist mathematician scientist
Computer scientist, cryptographer and mathematician Martin Hellman do for a living
computer scientist cryptographer mathematician
action filter_type
action find
entity Martin Hellman
relation occupation
type occupation
['Martin Hellman', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Martin_Hellman property:occupation ?l . ?l rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q82594
P425
Q1047113
USER
What has that one as thier associated field of occupation ?
(Q82594,P425,c(Q1047113))
action filter_type
action find
entity Q82594
relation P425
type Q1047113
['Q82594', 'P425', {'concept': 'Q1047113'}]
SELECT DISTINCT ?j WHERE { resource:Q82594 property:P425 ?j . ?j rdf:type ontology:Q1047113 }
computer scientist
action filter_type
action find
entity computer scientist
relation field of this occupation
type special field
['computer scientist', 'field of this occupation', {'concept': 'special field'}]
SELECT DISTINCT ?j WHERE { resource:computer_scientist property:field_of_this_occupation ?j . ?j rdf:type ontology:special_field }
[]
special field
Clarification for simple ques.
Q82594
SYSTEM
Did you mean computer scientist ?
Q82594 Q15442776 Q170790
(Q82594,P425,c(Q1047113)) (Q15442776,P425,c(Q1047113)) (Q170790,P425,c(Q1047113))
[ANSWER]
['Q82594', 'P425', {'concept': 'Q1047113'}] ['Q15442776', 'P425', {'concept': 'Q1047113'}] ['Q170790', 'P425', {'concept': 'Q1047113'}]
SELECT DISTINCT ?j WHERE { resource:Q82594 property:P425 ?j . ?j rdf:type ontology:Q1047113 }
computer scientist cryptographer mathematician
Did you mean computer scientist ?
computer scientist
['computer scientist', 'field of this occupation', {'concept': 'special field'}] ['cryptographer', 'field of this occupation', {'concept': 'special field'}] ['mathematician', 'field of this occupation', {'concept': 'special field'}]
SELECT DISTINCT ?j WHERE { resource:computer_scientist property:field_of_this_occupation ?j . ?j rdf:type ontology:special_field }
[]
Simple Question (Coreferenced)
USER
Yes
(Q82594,P425,c(Q1047113))
['Q82594', 'P425', {'concept': 'Q1047113'}]
['computer scientist', 'field of this occupation', {'concept': 'special field'}]
[]
Q21198
SYSTEM
computer science
Q21198
(Q82594,P425,c(Q1047113))
action filter_type
action find
entity Q82594
relation P425
type Q1047113
[ANSWER] has that one as thier associated field of occupation
['Q82594', 'P425', {'concept': 'Q1047113'}]
SELECT DISTINCT ?j WHERE { resource:Q82594 property:P425 ?j . ?j rdf:type ontology:Q1047113 }
computer science
Computer science has that one as thier associated field of occupation
computer science
action filter_type
action find
entity computer scientist
relation field of this occupation
type special field
['computer scientist', 'field of this occupation', {'concept': 'special field'}]
SELECT DISTINCT ?j WHERE { resource:computer_scientist property:field_of_this_occupation ?j . ?j rdf:type ontology:special_field }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P194
Q11204 Q1752346 Q15617994
USER
How many administrative territories have atleast 2 legislatures or assemblies as their representative body ?
(c(Q15617994),P194,c(Q11204)|c(Q1752346))
action count
action atleast
action union
action find_tuple_counts
relation P194
type Q15617994
type Q11204
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
value 2
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q11204'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?i ) AS ?p ) WHERE { VALUES ( ?r ) { ( ontology:Q11204 ) ( ontology:Q1752346 ) } . ?i rdf:type ?r } GROUP BY ?e } . FILTER ( ?p >= 2 ) }
action count
action atleast
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'legislature'}, {'concept': 'assembly'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?i ) AS ?p ) WHERE { VALUES ( ?r ) { ( ontology:legislature ) ( ontology:assembly ) } . ?i rdf:type ?r } GROUP BY ?e } . FILTER ( ?p >= 2 ) }
[]
legislature assembly designation for an administrative territorial entity
SYSTEM
4
Q159 Q794 Q6465 Q948
(c(Q15617994),P194,c(Q11204)|c(Q1752346))
action count
action atleast
action union
action find_tuple_counts
relation P194
type Q15617994
type Q11204
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
value 2
[ANSWER]
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q11204'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?i ) AS ?p ) WHERE { VALUES ( ?r ) { ( ontology:Q11204 ) ( ontology:Q1752346 ) } . ?i rdf:type ?r } GROUP BY ?e } . FILTER ( ?p >= 2 ) }
Russia Iran department of France Tunisia
4
action count
action atleast
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'legislature'}, {'concept': 'assembly'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?i ) AS ?p ) WHERE { VALUES ( ?r ) { ( ontology:legislature ) ( ontology:assembly ) } . ?i rdf:type ?r } GROUP BY ?e } . FILTER ( ?p >= 2 ) }
[]