Simple Question (Direct)
Simple Question
Q4893726
P19
Q56061
USER
Where was Bernard W. Nussbaum born ?
(Q4893726,P19,c(Q56061))
action filter_type
action find
entity Q4893726
relation P19
type Q56061
['Q4893726', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q4893726 property:P19 ?f . ?f rdf:type ontology:Q56061 }
Bernard W. Nussbaum
action filter_type
action find
entity Bernard W. Nussbaum
relation place of birth
type administrative territorial entity
['Bernard W. Nussbaum', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Bernard_W._Nussbaum property:place_of_birth ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q60
SYSTEM
New York City
Q60
(Q4893726,P19,c(Q56061))
action filter_type
action find
entity Q4893726
relation P19
type Q56061
Bernard W. Nussbaum was born in [ANSWER]
['Q4893726', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q4893726 property:P19 ?f . ?f rdf:type ontology:Q56061 }
New York City
Bernard W. Nussbaum was born in New York City
New York City
action filter_type
action find
entity Bernard W. Nussbaum
relation place of birth
type administrative territorial entity
['Bernard W. Nussbaum', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Bernard_W._Nussbaum property:place_of_birth ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4893726
P21
Q290
USER
Which sex does Bernard W. Nussbaum possess ?
(Q4893726,P21,c(Q290))
action filter_type
action find
entity Q4893726
relation P21
type Q290
['Q4893726', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q4893726 property:P21 ?a . ?a rdf:type ontology:Q290 }
Bernard W. Nussbaum
action filter_type
action find
entity Bernard W. Nussbaum
relation gender
type sex
['Bernard W. Nussbaum', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Bernard_W._Nussbaum property:gender ?a . ?a rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q4893726,P21,c(Q290))
action filter_type
action find
entity Q4893726
relation P21
type Q290
Bernard W. Nussbaum possesses un [ANSWER]
['Q4893726', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q4893726 property:P21 ?a . ?a rdf:type ontology:Q290 }
male
Bernard W. Nussbaum possesses un male
male
action filter_type
action find
entity Bernard W. Nussbaum
relation gender
type sex
['Bernard W. Nussbaum', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Bernard_W._Nussbaum property:gender ?a . ?a rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q10374174
P21
Q502895
USER
Does Stephen Tolkin have that sex as the sex ?
(Q10374174,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q10374174
relation P21
['Q10374174', 'P21', 'Q6581097']
ASK WHERE { resource:Q10374174 property:P21 resource:Q6581097 }
male Stephen Tolkin
action is_in
entity male
action find
entity Stephen Tolkin
relation gender
['Stephen Tolkin', 'gender', 'male']
ASK WHERE { resource:Stephen_Tolkin property:gender resource:male }
[]
common name
SYSTEM
YES
(Q10374174,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q10374174
relation P21
[ANSWER]
['Q10374174', 'P21', 'Q6581097']
ASK WHERE { resource:Q10374174 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Stephen Tolkin
relation gender
['Stephen Tolkin', 'gender', 'male']
ASK WHERE { resource:Stephen_Tolkin property:gender resource:male }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q4893726 Q49088
P69
Q163740
USER
Is Columbia University the alma mater of Bernard W. Nussbaum ?
(Q4893726,P69,Q49088)
action is_in
entity Q49088
action find
entity Q4893726
relation P69
['Q4893726', 'P69', 'Q49088']
ASK WHERE { resource:Q4893726 property:P69 resource:Q49088 }
Bernard W. Nussbaum Columbia University
action is_in
entity Columbia University
action find
entity Bernard W. Nussbaum
relation educated at
['Bernard W. Nussbaum', 'educated at', 'Columbia University']
ASK WHERE { resource:Bernard_W._Nussbaum property:educated_at resource:Columbia_University }
[]
nonprofit organization
SYSTEM
YES
(Q4893726,P69,Q49088)
action is_in
entity Q49088
action find
entity Q4893726
relation P69
[ANSWER]
['Q4893726', 'P69', 'Q49088']
ASK WHERE { resource:Q4893726 property:P69 resource:Q49088 }
Yes
action is_in
entity Columbia University
action find
entity Bernard W. Nussbaum
relation educated at
['Bernard W. Nussbaum', 'educated at', 'Columbia University']
ASK WHERE { resource:Bernard_W._Nussbaum property:educated_at resource:Columbia_University }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q60 Q439156
P6
Q502895
USER
Is Robert F. Wagner the head of government of New York City ?
(Q60,P6,Q439156)
action is_in
entity Q439156
action find
entity Q60
relation P6
['Q60', 'P6', 'Q439156']
ASK WHERE { resource:Q60 property:P6 resource:Q439156 }
New York City Robert F. Wagner
action is_in
entity Robert F. Wagner
action find
entity New York City
relation head of government
['New York City', 'head of government', 'Robert F. Wagner']
ASK WHERE { resource:New_York_City property:head_of_government resource:Robert_F._Wagner }
[]
common name
SYSTEM
YES
(Q60,P6,Q439156)
action is_in
entity Q439156
action find
entity Q60
relation P6
[ANSWER]
['Q60', 'P6', 'Q439156']
ASK WHERE { resource:Q60 property:P6 resource:Q439156 }
Yes
action is_in
entity Robert F. Wagner
action find
entity New York City
relation head of government
['New York City', 'head of government', 'Robert F. Wagner']
ASK WHERE { resource:New_York_City property:head_of_government resource:Robert_F._Wagner }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q60
P138
Q56061 Q502895
USER
How many administrative territories and people are New York City named after ?
(Q60,P138,c(Q56061)) (Q60,P138,c(Q502895))
action count
action union
action filter_type
action find
entity Q60
relation P138
type Q56061
action filter_type
action find
entity Q60
relation P138
type Q502895
['Q60', 'P138', {'concept': 'Q56061'}] ['Q60', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { ?c rdf:type ?e . VALUES ( ?e ) { ( ontology:Q56061 ) ( ontology:Q502895 ) } }
New York City
action count
action union
action filter_type
action find
entity New York City
relation named after
type administrative territorial entity
action filter_type
action find
entity New York City
relation named after
type common name
['New York City', 'named after', {'concept': 'administrative territorial entity'}] ['New York City', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { ?c rdf:type ?e . VALUES ( ?e ) { ( ontology:administrative_territorial_entity ) ( ontology:common_name ) } }
[]
administrative territorial entity common name
SYSTEM
1 administrative territories and 1 people
Q126188 Q42462
(Q60,P138,c(Q56061)) (Q60,P138,c(Q502895))
action count
action union
action filter_type
action find
entity Q60
relation P138
type Q56061
action filter_type
action find
entity Q60
relation P138
type Q502895
[ANSWER]
['Q60', 'P138', {'concept': 'Q56061'}] ['Q60', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { ?c rdf:type ?e . VALUES ( ?e ) { ( ontology:Q56061 ) ( ontology:Q502895 ) } }
James VII and II York
1 administrative territories and 1 people
action count
action union
action filter_type
action find
entity New York City
relation named after
type administrative territorial entity
action filter_type
action find
entity New York City
relation named after
type common name
['New York City', 'named after', {'concept': 'administrative territorial entity'}] ['New York City', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { ?c rdf:type ?e . VALUES ( ?e ) { ( ontology:administrative_territorial_entity ) ( ontology:common_name ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q60
P163
Q14660
USER
What is the name of flag associated with New York City ?
(Q60,P163,c(Q14660))
action filter_type
action find
entity Q60
relation P163
type Q14660
['Q60', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?a WHERE { resource:Q60 property:P163 ?a . ?a rdf:type ontology:Q14660 }
New York City
action filter_type
action find
entity New York City
relation flag
type flag
['New York City', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?a WHERE { resource:New_York_City property:flag ?a . ?a rdf:type ontology:flag }
[]
flag
Q1414813
SYSTEM
Flag of New York City
Q1414813
(Q60,P163,c(Q14660))
action filter_type
action find
entity Q60
relation P163
type Q14660
The name of flag associated with New York City is the [ANSWER]
['Q60', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?a WHERE { resource:Q60 property:P163 ?a . ?a rdf:type ontology:Q14660 }
Flag of New York City
The name of flag associated with New York City is the Flag of New York City
Flag of New York City
action filter_type
action find
entity New York City
relation flag
type flag
['New York City', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?a WHERE { resource:New_York_City property:flag ?a . ?a rdf:type ontology:flag }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P163
Q14660 Q13220204
USER
How many flags have less number of administrative country subdivisions as their flagthan that flag ?
(c(Q13220204),P163,c(Q14660))
action count
action less
action find_tuple_counts
relation P163
type Q14660
type Q13220204
action count
action filter_type
action find
entity Q1414813
relation P163
type Q14660
[{'concept': 'Q13220204'}, 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?v ) WHERE { ?c property:P163 ?f . ?c rdf:type ontology:Q14660 . ?f rdf:type ontology:Q13220204 } GROUP BY ?c } . FILTER ( ?v < ?l ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { resource:Q1414813 property:P163 ?a . ?a rdf:type ontology:Q14660 } } }
action count
action less
action find_tuple_counts
relation flag
type flag
type second-level administrative country subdivision
action count
action filter_type
action find
entity Flag of New York City
relation flag
type flag
[{'concept': 'second-level administrative country subdivision'}, 'flag', {'concept': 'flag'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?v ) WHERE { ?c property:flag ?f . ?c rdf:type ontology:flag . ?f rdf:type ontology:second-level_administrative_country_subdivision } GROUP BY ?c } . FILTER ( ?v < ?l ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { resource:Flag_of_New_York_City property:flag ?a . ?a rdf:type ontology:flag } } }
[]
flag second-level administrative country subdivision
SYSTEM
0
(c(Q13220204),P163,c(Q14660))
action count
action less
action find_tuple_counts
relation P163
type Q14660
type Q13220204
action count
action filter_type
action find
entity Q1414813
relation P163
type Q14660
[ANSWER]
[{'concept': 'Q13220204'}, 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?v ) WHERE { ?c property:P163 ?f . ?c rdf:type ontology:Q14660 . ?f rdf:type ontology:Q13220204 } GROUP BY ?c } . FILTER ( ?v < ?l ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { resource:Q1414813 property:P163 ?a . ?a rdf:type ontology:Q14660 } } }
0
action count
action less
action find_tuple_counts
relation flag
type flag
type second-level administrative country subdivision
action count
action filter_type
action find
entity Flag of New York City
relation flag
type flag
[{'concept': 'second-level administrative country subdivision'}, 'flag', {'concept': 'flag'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?v ) WHERE { ?c property:flag ?f . ?c rdf:type ontology:flag . ?f rdf:type ontology:second-level_administrative_country_subdivision } GROUP BY ?c } . FILTER ( ?v < ?l ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { resource:Flag_of_New_York_City property:flag ?a . ?a rdf:type ontology:flag } } }
[]