Simple Question (Direct)
Simple Question
Q437997
P102
Q7210356
USER
Which party is John Brown Francis affiliated with ?
(Q437997,P102,c(Q7210356))
action filter_type
action find
entity Q437997
relation P102
type Q7210356
['Q437997', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?i WHERE { resource:Q437997 property:P102 ?i . ?i rdf:type ontology:Q7210356 }
John Brown Francis
action filter_type
action find
entity John Brown Francis
relation member of political party
type political organization
['John Brown Francis', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?i WHERE { resource:John_Brown_Francis property:member_of_political_party ?i . ?i rdf:type ontology:political_organization }
[]
political organization
Q29552
SYSTEM
Democratic Party
Q29552
(Q437997,P102,c(Q7210356))
action filter_type
action find
entity Q437997
relation P102
type Q7210356
John Brown Francis is affiliated with [ANSWER]
['Q437997', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?i WHERE { resource:Q437997 property:P102 ?i . ?i rdf:type ontology:Q7210356 }
Democratic Party
John Brown Francis is affiliated with Democratic Party
Democratic Party
action filter_type
action find
entity John Brown Francis
relation member of political party
type political organization
['John Brown Francis', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?i WHERE { resource:John_Brown_Francis property:member_of_political_party ?i . ?i rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q437997
P69
Q163740
USER
Which nonprofit organization was John Brown Francis educated at ?
(Q437997,P69,c(Q163740))
action filter_type
action find
entity Q437997
relation P69
type Q163740
['Q437997', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?d WHERE { resource:Q437997 property:P69 ?d . ?d rdf:type ontology:Q163740 }
John Brown Francis
action filter_type
action find
entity John Brown Francis
relation educated at
type nonprofit organization
['John Brown Francis', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?d WHERE { resource:John_Brown_Francis property:educated_at ?d . ?d rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q49114
SYSTEM
Brown University
Q49114
(Q437997,P69,c(Q163740))
action filter_type
action find
entity Q437997
relation P69
type Q163740
John Brown Francis was educated at [ANSWER]
['Q437997', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?d WHERE { resource:Q437997 property:P69 ?d . ?d rdf:type ontology:Q163740 }
Brown University
John Brown Francis was educated at Brown University
Brown University
action filter_type
action find
entity John Brown Francis
relation educated at
type nonprofit organization
['John Brown Francis', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?d WHERE { resource:John_Brown_Francis property:educated_at ?d . ?d rdf:type ontology:nonprofit_organization }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4885976
Q163740
USER
And how about Ben Kaplan?
(Q4885976,P69,c(Q163740))
action filter_type
action find
entity Q4885976
relation P69
type Q163740
['Q4885976', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?p WHERE { resource:Q4885976 property:P69 ?p . ?p rdf:type ontology:Q163740 }
Ben Kaplan
action filter_type
action find
entity Ben Kaplan
relation educated at
type nonprofit organization
['Ben Kaplan', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?p WHERE { resource:Ben_Kaplan property:educated_at ?p . ?p rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q13371
SYSTEM
Harvard University
Q13371
(Q4885976,P69,c(Q163740))
action filter_type
action find
entity Q4885976
relation P69
type Q163740
[ANSWER]
['Q4885976', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?p WHERE { resource:Q4885976 property:P69 ?p . ?p rdf:type ontology:Q163740 }
Harvard University
Harvard University
action filter_type
action find
entity Ben Kaplan
relation educated at
type nonprofit organization
['Ben Kaplan', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?p WHERE { resource:Ben_Kaplan property:educated_at ?p . ?p rdf:type ontology:nonprofit_organization }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q4885976
P734
Q82799
USER
How many names have the surname Ben Kaplan ?
(Q4885976,P734,c(Q82799))
action count
action filter_type
action find
entity Q4885976
relation P734
type Q82799
['Q4885976', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { resource:Q4885976 property:P734 ?y . ?y rdf:type ontology:Q82799 }
Ben Kaplan
action count
action filter_type
action find
entity Ben Kaplan
relation family name
type name
['Ben Kaplan', 'family name', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { resource:Ben_Kaplan property:family_name ?y . ?y rdf:type ontology:name }
[]
name
SYSTEM
1
Q6501864
(Q4885976,P734,c(Q82799))
action count
action filter_type
action find
entity Q4885976
relation P734
type Q82799
[ANSWER]
['Q4885976', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { resource:Q4885976 property:P734 ?y . ?y rdf:type ontology:Q82799 }
Kaplan
1
action count
action filter_type
action find
entity Ben Kaplan
relation family name
type name
['Ben Kaplan', 'family name', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { resource:Ben_Kaplan property:family_name ?y . ?y rdf:type ontology:name }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q5144923
Q82799
USER
And also tell me about Colin Brown?
(Q5144923,P734,c(Q82799))
action count
action filter_type
action find
entity Q5144923
relation P734
type Q82799
['Q5144923', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { resource:Q5144923 property:P734 ?o . ?o rdf:type ontology:Q82799 }
Colin Brown
action count
action filter_type
action find
entity Colin Brown
relation family name
type name
['Colin Brown', 'family name', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { resource:Colin_Brown property:family_name ?o . ?o rdf:type ontology:name }
[]
name
SYSTEM
1
(Q5144923,P734,c(Q82799))
action count
action filter_type
action find
entity Q5144923
relation P734
type Q82799
[ANSWER]
['Q5144923', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { resource:Q5144923 property:P734 ?o . ?o rdf:type ontology:Q82799 }
1
action count
action filter_type
action find
entity Colin Brown
relation family name
type name
['Colin Brown', 'family name', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { resource:Colin_Brown property:family_name ?o . ?o rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5144923
P27
Q15617994
USER
Which administrative territory is the native country of that person ?
action filter_type
action find
entity Q5144923
relation P27
type Q15617994
SELECT DISTINCT ?h WHERE { resource:Q5144923 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
Colin Brown
action filter_type
action find
entity Colin Brown
relation country of citizenship
type designation for an administrative territorial entity
SELECT DISTINCT ?h WHERE { resource:Colin_Brown property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
action filter_type
action find
entity Q5144923
relation P27
type Q15617994
[ANSWER] is the native country of that person
SELECT DISTINCT ?h WHERE { resource:Q5144923 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is the native country of that person
United Kingdom
action filter_type
action find
entity Colin Brown
relation country of citizenship
type designation for an administrative territorial entity
SELECT DISTINCT ?h WHERE { resource:Colin_Brown property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q201658 Q2088357
USER
How many administrative territories are the origins of more number of film genres and musical ensembles than that administrative territory ?
(c(Q201658)|c(Q2088357),P495,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action count
action filter_multi_types
action find_reverse
entity Q145
relation P495
type Q201658
type Q2088357
[[{'concept': 'Q201658'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { ?y property:P495 resource:Q145 . { VALUES ( ?a ) { ( ontology:Q201658 ) ( ontology:Q2088357 ) } . ?y rdf:type ?a } } } . FILTER ( ?u > ?c ) . { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?u ) WHERE { { ?i rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q201658 . ?z property:P495 ?i } UNION { ?z property:P495 ?i . ?z rdf:type ontology:Q2088357 . ?i rdf:type ontology:Q15617994 } } GROUP BY ?i } }
action count
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
action count
action filter_multi_types
action find_reverse
entity United Kingdom
relation country of origin
type film genre
type musical ensemble
[[{'concept': 'film genre'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { ?y property:country_of_origin resource:United_Kingdom . { VALUES ( ?a ) { ( ontology:film_genre ) ( ontology:musical_ensemble ) } . ?y rdf:type ?a } } } . FILTER ( ?u > ?c ) . { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?u ) WHERE { { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:film_genre . ?z property:country_of_origin ?i } UNION { ?z property:country_of_origin ?i . ?z rdf:type ontology:musical_ensemble . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?i } }
[]
designation for an administrative territorial entity film genre musical ensemble
SYSTEM
1
Q30
(c(Q201658)|c(Q2088357),P495,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action count
action filter_multi_types
action find_reverse
entity Q145
relation P495
type Q201658
type Q2088357
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { ?y property:P495 resource:Q145 . { VALUES ( ?a ) { ( ontology:Q201658 ) ( ontology:Q2088357 ) } . ?y rdf:type ?a } } } . FILTER ( ?u > ?c ) . { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?u ) WHERE { { ?i rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q201658 . ?z property:P495 ?i } UNION { ?z property:P495 ?i . ?z rdf:type ontology:Q2088357 . ?i rdf:type ontology:Q15617994 } } GROUP BY ?i } }
United States of America
1
action count
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
action count
action filter_multi_types
action find_reverse
entity United Kingdom
relation country of origin
type film genre
type musical ensemble
[[{'concept': 'film genre'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { ?y property:country_of_origin resource:United_Kingdom . { VALUES ( ?a ) { ( ontology:film_genre ) ( ontology:musical_ensemble ) } . ?y rdf:type ?a } } } . FILTER ( ?u > ?c ) . { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?u ) WHERE { { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:film_genre . ?z property:country_of_origin ?i } UNION { ?z property:country_of_origin ?i . ?z rdf:type ontology:musical_ensemble . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?i } }
[]