Simple Question (Direct)
Simple Question
Q3453448
P106
Q151885
USER
Which concept has Russell Wolf Brown as his/her 's career ?
(Q3453448,P106,c(Q151885))
action filter_type
action find
entity Q3453448
relation P106
type Q151885
['Q3453448', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?j WHERE { resource:Q3453448 property:P106 ?j . ?j rdf:type ontology:Q151885 }
Russell Wolf Brown
action filter_type
action find
entity Russell Wolf Brown
relation occupation
type concept
['Russell Wolf Brown', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?j WHERE { resource:Russell_Wolf_Brown property:occupation ?j . ?j rdf:type ontology:concept }
[]
concept
Q11513337
SYSTEM
athletics competitor
Q11513337
(Q3453448,P106,c(Q151885))
action filter_type
action find
entity Q3453448
relation P106
type Q151885
The [ANSWER] has Russell Wolf Brown as his/her 's career
['Q3453448', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?j WHERE { resource:Q3453448 property:P106 ?j . ?j rdf:type ontology:Q151885 }
athletics competitor
The athletics competitor has Russell Wolf Brown as his/her 's career
athletics competitor
action filter_type
action find
entity Russell Wolf Brown
relation occupation
type concept
['Russell Wolf Brown', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?j WHERE { resource:Russell_Wolf_Brown property:occupation ?j . ?j rdf:type ontology:concept }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3453448
P69
Q163740
USER
Which nonprofit organization is the alma mater of that person ?
(Q11513337,P69,c(Q163740))
action filter_type
action find
entity Q3453448
relation P69
type Q163740
['Q11513337', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?e WHERE { resource:Q3453448 property:P69 ?e . ?e rdf:type ontology:Q163740 }
Russell Wolf Brown
action filter_type
action find
entity Russell Wolf Brown
relation educated at
type nonprofit organization
['athletics competitor', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?e WHERE { resource:Russell_Wolf_Brown property:educated_at ?e . ?e rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q41506
SYSTEM
Stanford University
Q41506
(Q11513337,P69,c(Q163740))
action filter_type
action find
entity Q3453448
relation P69
type Q163740
[ANSWER] is the alma mater of that person
['Q11513337', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?e WHERE { resource:Q3453448 property:P69 ?e . ?e rdf:type ontology:Q163740 }
Stanford University
Stanford University is the alma mater of that person
Stanford University
action filter_type
action find
entity Russell Wolf Brown
relation educated at
type nonprofit organization
['athletics competitor', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?e WHERE { resource:Russell_Wolf_Brown property:educated_at ?e . ?e rdf:type ontology:nonprofit_organization }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P138
Q502895
USER
How many people are the etymology of that nonprofit organization ?
(Q41506,P138,c(Q502895))
action count
action filter_type
action find
entity Q41506
relation P138
type Q502895
['Q41506', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { resource:Q41506 property:P138 ?m . ?m rdf:type ontology:Q502895 }
action count
action filter_type
action find
entity Stanford University
relation named after
type common name
['Stanford University', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { resource:Stanford_University property:named_after ?m . ?m rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q382109
(Q41506,P138,c(Q502895))
action count
action filter_type
action find
entity Q41506
relation P138
type Q502895
[ANSWER]
['Q41506', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { resource:Q41506 property:P138 ?m . ?m rdf:type ontology:Q502895 }
Leland Stanford
1
action count
action filter_type
action find
entity Stanford University
relation named after
type common name
['Stanford University', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { resource:Stanford_University property:named_after ?m . ?m rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q1348413 Q3453448
P27
Q15617994
USER
Which administrative territories do Russell Wolf Brown and Harry Klinefelter belong to ?
AND((Q3453448,P27,c(Q15617994)), (Q1348413,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q3453448
relation P27
action find
entity Q1348413
relation P27
type Q15617994
{'AND': [['Q3453448', 'P27', {'concept': 'Q15617994'}], ['Q1348413', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { resource:Q3453448 property:P27 ?a . resource:Q1348413 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
Harry Klinefelter Russell Wolf Brown
action filter_type
action intersection
action find
entity Russell Wolf Brown
relation country of citizenship
action find
entity Harry Klinefelter
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Russell Wolf Brown', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Harry Klinefelter', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { resource:Russell_Wolf_Brown property:country_of_citizenship ?a . resource:Harry_Klinefelter property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q3453448,P27,c(Q15617994)), (Q1348413,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q3453448
relation P27
action find
entity Q1348413
relation P27
type Q15617994
Russell Wolf Brown and Harry Klinefelter belong to [ANSWER]
{'AND': [['Q3453448', 'P27', {'concept': 'Q15617994'}], ['Q1348413', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { resource:Q3453448 property:P27 ?a . resource:Q1348413 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
United States of America
Russell Wolf Brown and Harry Klinefelter belong to United States of America
United States of America
action filter_type
action intersection
action find
entity Russell Wolf Brown
relation country of citizenship
action find
entity Harry Klinefelter
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Russell Wolf Brown', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Harry Klinefelter', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { resource:Russell_Wolf_Brown property:country_of_citizenship ?a . resource:Harry_Klinefelter property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q3153701
P636
Q151885 Q3249551 Q12136
USER
How many concepts are the routes of administration of greater number of processes and diseases than insufflation ?
(c(Q3249551)|c(Q12136),P636,c(Q151885))
action count
action greater
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q3249551
action find_reverse_tuple_counts
relation P636
type Q151885
type Q12136
action count
action filter_multi_types
action find_reverse
entity Q3153701
relation P636
type Q3249551
type Q12136
[[{'concept': 'Q3249551'}, {'concept': 'Q12136'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) ?m WHERE { { ?u property:P636 ?m . ?m rdf:type ontology:Q151885 . ?u rdf:type ontology:Q3249551 } UNION { ?u property:P636 ?m . ?m rdf:type ontology:Q151885 . ?u rdf:type ontology:Q12136 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P636 resource:Q3153701 . { { ?z rdf:type ontology:Q3249551 } UNION { ?z rdf:type ontology:Q12136 } } } } . FILTER ( ?t > ?y ) }
insufflation
action count
action greater
action union
action find_reverse_tuple_counts
relation route of administration
type concept
type process
action find_reverse_tuple_counts
relation route of administration
type concept
type disease
action count
action filter_multi_types
action find_reverse
entity insufflation
relation route of administration
type process
type disease
[[{'concept': 'process'}, {'concept': 'disease'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) ?m WHERE { { ?u property:route_of_administration ?m . ?m rdf:type ontology:concept . ?u rdf:type ontology:process } UNION { ?u property:route_of_administration ?m . ?m rdf:type ontology:concept . ?u rdf:type ontology:disease } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:route_of_administration resource:insufflation . { { ?z rdf:type ontology:process } UNION { ?z rdf:type ontology:disease } } } } . FILTER ( ?t > ?y ) }
[]
concept process disease
SYSTEM
5
Q21074571 Q640448 Q4669896 Q1663054 Q10268830
(c(Q3249551)|c(Q12136),P636,c(Q151885))
action count
action greater
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q3249551
action find_reverse_tuple_counts
relation P636
type Q151885
type Q12136
action count
action filter_multi_types
action find_reverse
entity Q3153701
relation P636
type Q3249551
type Q12136
[ANSWER]
[[{'concept': 'Q3249551'}, {'concept': 'Q12136'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) ?m WHERE { { ?u property:P636 ?m . ?m rdf:type ontology:Q151885 . ?u rdf:type ontology:Q3249551 } UNION { ?u property:P636 ?m . ?m rdf:type ontology:Q151885 . ?u rdf:type ontology:Q12136 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P636 resource:Q3153701 . { { ?z rdf:type ontology:Q3249551 } UNION { ?z rdf:type ontology:Q12136 } } } } . FILTER ( ?t > ?y ) }
eye contact intravenous infusion skin absorption ingestion inhalation
5
action count
action greater
action union
action find_reverse_tuple_counts
relation route of administration
type concept
type process
action find_reverse_tuple_counts
relation route of administration
type concept
type disease
action count
action filter_multi_types
action find_reverse
entity insufflation
relation route of administration
type process
type disease
[[{'concept': 'process'}, {'concept': 'disease'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) ?m WHERE { { ?u property:route_of_administration ?m . ?m rdf:type ontology:concept . ?u rdf:type ontology:process } UNION { ?u property:route_of_administration ?m . ?m rdf:type ontology:concept . ?u rdf:type ontology:disease } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:route_of_administration resource:insufflation . { { ?z rdf:type ontology:process } UNION { ?z rdf:type ontology:disease } } } } . FILTER ( ?t > ?y ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1348413
P27
Q15617994
USER
How many administrative territories are Harry Klinefelter a civilian of ?
(Q1348413,P27,c(Q15617994))
action count
action filter_type
action find
entity Q1348413
relation P27
type Q15617994
['Q1348413', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { resource:Q1348413 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
Harry Klinefelter
action count
action filter_type
action find
entity Harry Klinefelter
relation country of citizenship
type designation for an administrative territorial entity
['Harry Klinefelter', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { resource:Harry_Klinefelter property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q30
(Q1348413,P27,c(Q15617994))
action count
action filter_type
action find
entity Q1348413
relation P27
type Q15617994
[ANSWER]
['Q1348413', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { resource:Q1348413 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
United States of America
1
action count
action filter_type
action find
entity Harry Klinefelter
relation country of citizenship
type designation for an administrative territorial entity
['Harry Klinefelter', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { resource:Harry_Klinefelter property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q7788867
Q15617994
USER
And also tell me about Thomas David Petite?
(Q7788867,P27,c(Q15617994))
action count
action filter_type
action find
entity Q7788867
relation P27
type Q15617994
['Q7788867', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { resource:Q7788867 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
Thomas David Petite
action count
action filter_type
action find
entity Thomas David Petite
relation country of citizenship
type designation for an administrative territorial entity
['Thomas David Petite', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { resource:Thomas_David_Petite property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
(Q7788867,P27,c(Q15617994))
action count
action filter_type
action find
entity Q7788867
relation P27
type Q15617994
[ANSWER]
['Q7788867', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { resource:Q7788867 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
1
action count
action filter_type
action find
entity Thomas David Petite
relation country of citizenship
type designation for an administrative territorial entity
['Thomas David Petite', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { resource:Thomas_David_Petite property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]