Simple Question (Direct)
Simple Question
Q7817215
P108
Q163740
USER
Which nonprofit organization employs Tom Perls ?
(Q7817215,P108,c(Q163740))
action filter_type
action find
entity Q7817215
relation P108
type Q163740
['Q7817215', 'P108', {'concept': 'Q163740'}]
SELECT DISTINCT ?j WHERE { resource:Q7817215 property:P108 ?j . ?j rdf:type ontology:Q163740 }
Tom Perls
action filter_type
action find
entity Tom Perls
relation employer
type nonprofit organization
['Tom Perls', 'employer', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?j WHERE { resource:Tom_Perls property:employer ?j . ?j rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q49110
SYSTEM
Boston University
Q49110
(Q7817215,P108,c(Q163740))
action filter_type
action find
entity Q7817215
relation P108
type Q163740
[ANSWER] employs Tom Perls
['Q7817215', 'P108', {'concept': 'Q163740'}]
SELECT DISTINCT ?j WHERE { resource:Q7817215 property:P108 ?j . ?j rdf:type ontology:Q163740 }
Boston University
Boston University employs Tom Perls
Boston University
action filter_type
action find
entity Tom Perls
relation employer
type nonprofit organization
['Tom Perls', 'employer', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?j WHERE { resource:Tom_Perls property:employer ?j . ?j rdf:type ontology:nonprofit_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7817215
P69
Q163740
USER
Which nonprofit organizations are the alma mater of Tom Perls ?
(Q7817215,P69,c(Q163740))
action filter_type
action find
entity Q7817215
relation P69
type Q163740
['Q7817215', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?m WHERE { resource:Q7817215 property:P69 ?m . ?m rdf:type ontology:Q163740 }
Tom Perls
action filter_type
action find
entity Tom Perls
relation educated at
type nonprofit organization
['Tom Perls', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?m WHERE { resource:Tom_Perls property:educated_at ?m . ?m rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q7199570 Q13371
SYSTEM
Pitzer College, Harvard University
Q7199570 Q13371
(Q7817215,P69,c(Q163740))
action filter_type
action find
entity Q7817215
relation P69
type Q163740
[ANSWERS] are the alma mater of Tom Perls
['Q7817215', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?m WHERE { resource:Q7817215 property:P69 ?m . ?m rdf:type ontology:Q163740 }
Pitzer College Harvard University
Pitzer College and Harvard University are the alma mater of Tom Perls
Pitzer College Harvard University
action filter_type
action find
entity Tom Perls
relation educated at
type nonprofit organization
['Tom Perls', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?m WHERE { resource:Tom_Perls property:educated_at ?m . ?m rdf:type ontology:nonprofit_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7817215
P19
Q56061
USER
Which administrative territory was that person born at ?
(Q7199570,P19,c(Q56061)) (Q13371,P19,c(Q56061))
action filter_type
action find
entity Q7817215
relation P19
type Q56061
['Q7199570', 'P19', {'concept': 'Q56061'}] ['Q13371', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q7817215 property:P19 ?m . ?m rdf:type ontology:Q56061 }
Tom Perls
action filter_type
action find
entity Tom Perls
relation place of birth
type administrative territorial entity
['Pitzer College', 'place of birth', {'concept': 'administrative territorial entity'}] ['Harvard University', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Tom_Perls property:place_of_birth ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q47265
SYSTEM
Palo Alto
Q47265
(Q7199570,P19,c(Q56061)) (Q13371,P19,c(Q56061))
action filter_type
action find
entity Q7817215
relation P19
type Q56061
That person was born in [ANSWER]
['Q7199570', 'P19', {'concept': 'Q56061'}] ['Q13371', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q7817215 property:P19 ?m . ?m rdf:type ontology:Q56061 }
Palo Alto
That person was born in Palo Alto
Palo Alto
action filter_type
action find
entity Tom Perls
relation place of birth
type administrative territorial entity
['Pitzer College', 'place of birth', {'concept': 'administrative territorial entity'}] ['Harvard University', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Tom_Perls property:place_of_birth ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q47265 Q4906922
P17
Q15617994
USER
Is that administrative territory present in Biggin, Essex ?
(Q47265,P17,Q4906922)
action is_in
entity Q4906922
action find
entity Q47265
relation P17
['Q47265', 'P17', 'Q4906922']
ASK WHERE { resource:Q47265 property:P17 resource:Q4906922 }
Palo Alto Biggin, Essex
action is_in
entity Biggin, Essex
action find
entity Palo Alto
relation country
['Palo Alto', 'country', 'Biggin, Essex']
ASK WHERE { resource:Palo_Alto property:country resource:Biggin,_Essex }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q47265,P17,Q4906922)
action is_in
entity Q4906922
action find
entity Q47265
relation P17
[ANSWER]
['Q47265', 'P17', 'Q4906922']
ASK WHERE { resource:Q47265 property:P17 resource:Q4906922 }
No
action is_in
entity Biggin, Essex
action find
entity Palo Alto
relation country
['Palo Alto', 'country', 'Biggin, Essex']
ASK WHERE { resource:Palo_Alto property:country resource:Biggin,_Essex }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5991559 Q7817215
P27 P17
Q15617994
USER
Which administrative territories are the native countriesof Tom Perls or are Igbo-Ora present in ?
OR((Q7817215,P27,c(Q15617994)), (Q5991559,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q7817215
relation P27
action find
entity Q5991559
relation P17
type Q15617994
{'OR': [['Q7817215', 'P27', {'concept': 'Q15617994'}], ['Q5991559', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q7817215 property:P27 ?l } UNION { resource:Q5991559 property:P17 ?l } } . ?l rdf:type ontology:Q15617994 }
Igbo-Ora Tom Perls
action filter_type
action union
action find
entity Tom Perls
relation country of citizenship
action find
entity Igbo-Ora
relation country
type designation for an administrative territorial entity
{'OR': [['Tom Perls', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Igbo-Ora', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Tom_Perls property:country_of_citizenship ?l } UNION { resource:Igbo-Ora property:country ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q1033
SYSTEM
United States of America, Nigeria
Q30 Q1033
OR((Q7817215,P27,c(Q15617994)), (Q5991559,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q7817215
relation P27
action find
entity Q5991559
relation P17
type Q15617994
[ANSWERS] are the native countriesof Tom Perls or are Igbo-Ora present in
{'OR': [['Q7817215', 'P27', {'concept': 'Q15617994'}], ['Q5991559', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q7817215 property:P27 ?l } UNION { resource:Q5991559 property:P17 ?l } } . ?l rdf:type ontology:Q15617994 }
United States of America Nigeria
United States of America and Nigeria are the native countriesof Tom Perls or are Igbo-Ora present in
United States of America Nigeria
action filter_type
action union
action find
entity Tom Perls
relation country of citizenship
action find
entity Igbo-Ora
relation country
type designation for an administrative territorial entity
{'OR': [['Tom Perls', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Igbo-Ora', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Tom_Perls property:country_of_citizenship ?l } UNION { resource:Igbo-Ora property:country ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P610
Q14524493
USER
Which terrain is the highest point of United States of America ?
(Q30,P610,c(Q14524493))
action filter_type
action find
entity Q30
relation P610
type Q14524493
['Q30', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?q WHERE { resource:Q30 property:P610 ?q . ?q rdf:type ontology:Q14524493 }
United States of America
action filter_type
action find
entity United States of America
relation highest point
type terrain
['United States of America', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?q WHERE { resource:United_States_of_America property:highest_point ?q . ?q rdf:type ontology:terrain }
[]
terrain
Q130018
SYSTEM
Denali
Q130018
(Q30,P610,c(Q14524493))
action filter_type
action find
entity Q30
relation P610
type Q14524493
[ANSWER] is the highest point of United States of America
['Q30', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?q WHERE { resource:Q30 property:P610 ?q . ?q rdf:type ontology:Q14524493 }
Denali
Denali is the highest point of United States of America
Denali
action filter_type
action find
entity United States of America
relation highest point
type terrain
['United States of America', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?q WHERE { resource:United_States_of_America property:highest_point ?q . ?q rdf:type ontology:terrain }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P17
Q15617994
USER
How many administrative territories do that terrain belong to ?
(Q130018,P17,c(Q15617994))
action count
action filter_type
action find
entity Q130018
relation P17
type Q15617994
['Q130018', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { resource:Q130018 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
action count
action filter_type
action find
entity Denali
relation country
type designation for an administrative territorial entity
['Denali', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { resource:Denali property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q30
(Q130018,P17,c(Q15617994))
action count
action filter_type
action find
entity Q130018
relation P17
type Q15617994
[ANSWER]
['Q130018', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { resource:Q130018 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
United States of America
1
action count
action filter_type
action find
entity Denali
relation country
type designation for an administrative territorial entity
['Denali', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { resource:Denali property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q621837
P17
Q15617994
USER
How many administrative territories are Ablanque present in ?
(Q621837,P17,c(Q15617994))
action count
action filter_type
action find
entity Q621837
relation P17
type Q15617994
['Q621837', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { resource:Q621837 property:P17 ?f . ?f rdf:type ontology:Q15617994 }
Ablanque
action count
action filter_type
action find
entity Ablanque
relation country
type designation for an administrative territorial entity
['Ablanque', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { resource:Ablanque property:country ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q29
(Q621837,P17,c(Q15617994))
action count
action filter_type
action find
entity Q621837
relation P17
type Q15617994
[ANSWER]
['Q621837', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { resource:Q621837 property:P17 ?f . ?f rdf:type ontology:Q15617994 }
Spain
1
action count
action filter_type
action find
entity Ablanque
relation country
type designation for an administrative territorial entity
['Ablanque', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { resource:Ablanque property:country ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q7649474
P17
Q15617994
USER
And also tell me about Sussex Records?
(Q7649474,P17,c(Q15617994))
action count
action filter_type
action find
entity Q7649474
relation P17
type Q15617994
['Q7649474', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) WHERE { resource:Q7649474 property:P17 ?r . ?r rdf:type ontology:Q15617994 }
Sussex Records
action count
action filter_type
action find
entity Sussex Records
relation country
type designation for an administrative territorial entity
['Sussex Records', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) WHERE { resource:Sussex_Records property:country ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q30
(Q7649474,P17,c(Q15617994))
action count
action filter_type
action find
entity Q7649474
relation P17
type Q15617994
[ANSWER]
['Q7649474', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) WHERE { resource:Q7649474 property:P17 ?r . ?r rdf:type ontology:Q15617994 }
United States of America
1
action count
action filter_type
action find
entity Sussex Records
relation country
type designation for an administrative territorial entity
['Sussex Records', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) WHERE { resource:Sussex_Records property:country ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q26452750
Q15617994
USER
And how about Berryfield Farmhouse?
(Q26452750,P17,c(Q15617994))
action count
action filter_type
action find
entity Q26452750
relation P17
type Q15617994
['Q26452750', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { resource:Q26452750 property:P17 ?r . ?r rdf:type ontology:Q15617994 }
Berryfield Farmhouse
action count
action filter_type
action find
entity Berryfield Farmhouse
relation country
type designation for an administrative territorial entity
['Berryfield Farmhouse', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { resource:Berryfield_Farmhouse property:country ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
(Q26452750,P17,c(Q15617994))
action count
action filter_type
action find
entity Q26452750
relation P17
type Q15617994
[ANSWER]
['Q26452750', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { resource:Q26452750 property:P17 ?r . ?r rdf:type ontology:Q15617994 }
1
action count
action filter_type
action find
entity Berryfield Farmhouse
relation country
type designation for an administrative territorial entity
['Berryfield Farmhouse', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { resource:Berryfield_Farmhouse property:country ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q30
P47
Q7275 Q15617994
USER
How many states or administrative territories have an adjacent border with United States of America ?
(c(Q7275),P47,Q30) (c(Q15617994),P47,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P47
type Q7275
action filter_type
action find_reverse
entity Q30
relation P47
type Q15617994
[{'concept': 'Q7275'}, 'P47', 'Q30'] [{'concept': 'Q15617994'}, 'P47', 'Q30']
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { { ?u property:P47 resource:Q30 . ?u rdf:type ontology:Q7275 } UNION { ?u property:P47 resource:Q30 . ?u rdf:type ontology:Q15617994 } }
United States of America
action count
action union
action filter_type
action find_reverse
entity United States of America
relation shares border with
type state
action filter_type
action find_reverse
entity United States of America
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'state'}, 'shares border with', 'United States of America'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'United States of America']
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { { ?u property:shares_border_with resource:United_States_of_America . ?u rdf:type ontology:state } UNION { ?u property:shares_border_with resource:United_States_of_America . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
state designation for an administrative territorial entity
SYSTEM
7
Q248452 Q804 Q717 Q96 Q241 Q159 Q1152445
(c(Q7275),P47,Q30) (c(Q15617994),P47,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P47
type Q7275
action filter_type
action find_reverse
entity Q30
relation P47
type Q15617994
[ANSWER]
[{'concept': 'Q7275'}, 'P47', 'Q30'] [{'concept': 'Q15617994'}, 'P47', 'Q30']
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { { ?u property:P47 resource:Q30 . ?u rdf:type ontology:Q7275 } UNION { ?u property:P47 resource:Q30 . ?u rdf:type ontology:Q15617994 } }
British North America Panama Venezuela Mexico Cuba Russia Aerican Empire
7
action count
action union
action filter_type
action find_reverse
entity United States of America
relation shares border with
type state
action filter_type
action find_reverse
entity United States of America
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'state'}, 'shares border with', 'United States of America'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'United States of America']
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { { ?u property:shares_border_with resource:United_States_of_America . ?u rdf:type ontology:state } UNION { ?u property:shares_border_with resource:United_States_of_America . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q12578
P138
Q1190554 Q486972 Q15617994
USER
How many administrative territories are the eponym of more number of events and human settlements than Lot-et-Garonne ?
(c(Q15617994),P138,c(Q1190554)|c(Q486972))
action count
action greater
action union
action find_tuple_counts
relation P138
type Q15617994
type Q1190554
action find_tuple_counts
relation P138
type Q15617994
type Q486972
action count
action filter_multi_types
action find
entity Q12578
relation P138
type Q1190554
type Q486972
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q1190554'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) ?u WHERE { { ?u property:P138 ?a . ?u rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1190554 } UNION { ?u property:P138 ?a . ?u rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q486972 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { resource:Q12578 property:P138 ?c . { ?c rdf:type ?o . VALUES ( ?o ) { ( ontology:Q486972 ) ( ontology:Q1190554 ) } } } } . FILTER ( ?p > ?s ) }
Lot-et-Garonne
action count
action greater
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type event
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type human settlement
action count
action filter_multi_types
action find
entity Lot-et-Garonne
relation named after
type event
type human settlement
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'event'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) ?u WHERE { { ?u property:named_after ?a . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:event } UNION { ?u property:named_after ?a . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:human_settlement } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { resource:Lot-et-Garonne property:named_after ?c . { ?c rdf:type ?o . VALUES ( ?o ) { ( ontology:human_settlement ) ( ontology:event ) } } } } . FILTER ( ?p > ?s ) }
[]
event human settlement designation for an administrative territorial entity
SYSTEM
7
Q158876 Q14697553 Q1508919 Q10903 Q1452646 Q1393469 Q480103
(c(Q15617994),P138,c(Q1190554)|c(Q486972))
action count
action greater
action union
action find_tuple_counts
relation P138
type Q15617994
type Q1190554
action find_tuple_counts
relation P138
type Q15617994
type Q486972
action count
action filter_multi_types
action find
entity Q12578
relation P138
type Q1190554
type Q486972
[ANSWER]
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q1190554'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) ?u WHERE { { ?u property:P138 ?a . ?u rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1190554 } UNION { ?u property:P138 ?a . ?u rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q486972 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { resource:Q12578 property:P138 ?c . { ?c rdf:type ?o . VALUES ( ?o ) { ( ontology:Q486972 ) ( ontology:Q1190554 ) } } } } . FILTER ( ?p > ?s ) }
Reinickendorf Neetzow-Liepen Marengo Finnentrop Montenotte Jemmapes Amt Volmarstein
7
action count
action greater
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type event
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type human settlement
action count
action filter_multi_types
action find
entity Lot-et-Garonne
relation named after
type event
type human settlement
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'event'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) ?u WHERE { { ?u property:named_after ?a . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:event } UNION { ?u property:named_after ?a . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:human_settlement } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { resource:Lot-et-Garonne property:named_after ?c . { ?c rdf:type ?o . VALUES ( ?o ) { ( ontology:human_settlement ) ( ontology:event ) } } } } . FILTER ( ?p > ?s ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q731547
P138
Q1190554 Q486972 Q15617994
USER
And also tell me about Lippe?
(c(Q15617994),P138,c(Q1190554)|c(Q486972))
action count
action greater
action union
action find_tuple_counts
relation P138
type Q15617994
type Q1190554
action find_tuple_counts
relation P138
type Q15617994
type Q486972
action count
action filter_multi_types
action find
entity Q731547
relation P138
type Q1190554
type Q486972
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q1190554'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) ?e WHERE { { ?e rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q1190554 . ?e property:P138 ?z } UNION { ?e property:P138 ?z . ?e rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q486972 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) WHERE { resource:Q731547 property:P138 ?d . { { ?d rdf:type ontology:Q1190554 } UNION { ?d rdf:type ontology:Q486972 } } } } . FILTER ( ?y > ?f ) }
Lippe
action count
action greater
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type event
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type human settlement
action count
action filter_multi_types
action find
entity Lippe
relation named after
type event
type human settlement
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'event'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) ?e WHERE { { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:event . ?e property:named_after ?z } UNION { ?e property:named_after ?z . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:human_settlement } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) WHERE { resource:Lippe property:named_after ?d . { { ?d rdf:type ontology:event } UNION { ?d rdf:type ontology:human_settlement } } } } . FILTER ( ?y > ?f ) }
[]
event human settlement designation for an administrative territorial entity
SYSTEM
7
Q158876 Q14697553 Q1508919 Q10903 Q1452646 Q1393469 Q480103
(c(Q15617994),P138,c(Q1190554)|c(Q486972))
action count
action greater
action union
action find_tuple_counts
relation P138
type Q15617994
type Q1190554
action find_tuple_counts
relation P138
type Q15617994
type Q486972
action count
action filter_multi_types
action find
entity Q731547
relation P138
type Q1190554
type Q486972
[ANSWER]
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q1190554'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) ?e WHERE { { ?e rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q1190554 . ?e property:P138 ?z } UNION { ?e property:P138 ?z . ?e rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q486972 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) WHERE { resource:Q731547 property:P138 ?d . { { ?d rdf:type ontology:Q1190554 } UNION { ?d rdf:type ontology:Q486972 } } } } . FILTER ( ?y > ?f ) }
Reinickendorf Neetzow-Liepen Marengo Finnentrop Montenotte Jemmapes Amt Volmarstein
7
action count
action greater
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type event
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type human settlement
action count
action filter_multi_types
action find
entity Lippe
relation named after
type event
type human settlement
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'event'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) ?e WHERE { { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:event . ?e property:named_after ?z } UNION { ?e property:named_after ?z . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:human_settlement } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) WHERE { resource:Lippe property:named_after ?d . { { ?d rdf:type ontology:event } UNION { ?d rdf:type ontology:human_settlement } } } } . FILTER ( ?y > ?f ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q130018
P20
Q502895
USER
Which person has Denali as the area of death ?
(c(Q502895),P20,Q130018)
action filter_type
action find_reverse
entity Q130018
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q130018']
SELECT DISTINCT ?w WHERE { ?w property:P20 resource:Q130018 . ?w rdf:type ontology:Q502895 }
Denali
action filter_type
action find_reverse
entity Denali
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Denali']
SELECT DISTINCT ?w WHERE { ?w property:place_of_death resource:Denali . ?w rdf:type ontology:common_name }
[]
common name
Q1322504
SYSTEM
Naomi Uemura
Q1322504
(c(Q502895),P20,Q130018)
action filter_type
action find_reverse
entity Q130018
relation P20
type Q502895
[ANSWER] has Denali as the area of death
[{'concept': 'Q502895'}, 'P20', 'Q130018']
SELECT DISTINCT ?w WHERE { ?w property:P20 resource:Q130018 . ?w rdf:type ontology:Q502895 }
Naomi Uemura
Naomi Uemura has Denali as the area of death
Naomi Uemura
action filter_type
action find_reverse
entity Denali
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Denali']
SELECT DISTINCT ?w WHERE { ?w property:place_of_death resource:Denali . ?w rdf:type ontology:common_name }
[]