Simple Question (Direct)
Simple Question
Q651035
P734
Q82799
USER
Which name is associated with Mark Williams ?
(Q651035,P734,c(Q82799))
action filter_type
action find
entity Q651035
relation P734
type Q82799
['Q651035', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?s WHERE { resource:Q651035 property:P734 ?s . ?s rdf:type ontology:Q82799 }
Mark Williams
action filter_type
action find
entity Mark Williams
relation family name
type name
['Mark Williams', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?s WHERE { resource:Mark_Williams property:family_name ?s . ?s rdf:type ontology:name }
[]
name
Q1688722
SYSTEM
Williams
Q1688722
(Q651035,P734,c(Q82799))
action filter_type
action find
entity Q651035
relation P734
type Q82799
[ANSWER] is associated with Mark [ANSWER]
['Q651035', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?s WHERE { resource:Q651035 property:P734 ?s . ?s rdf:type ontology:Q82799 }
Williams
Williams is associated with Mark Williams
Williams
action filter_type
action find
entity Mark Williams
relation family name
type name
['Mark Williams', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?s WHERE { resource:Mark_Williams property:family_name ?s . ?s rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q651035
P641
Q349
USER
Which sport did Mark Williams participate in ?
(Q651035,P641,c(Q349))
action filter_type
action find
entity Q651035
relation P641
type Q349
['Q651035', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?a WHERE { resource:Q651035 property:P641 ?a . ?a rdf:type ontology:Q349 }
Mark Williams
action filter_type
action find
entity Mark Williams
relation sport
type sport
['Mark Williams', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?a WHERE { resource:Mark_Williams property:sport ?a . ?a rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q651035,P641,c(Q349))
action filter_type
action find
entity Q651035
relation P641
type Q349
Mark Williams participated in [ANSWER]
['Q651035', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?a WHERE { resource:Q651035 property:P641 ?a . ?a rdf:type ontology:Q349 }
association football
Mark Williams participated in association football
association football
action filter_type
action find
entity Mark Williams
relation sport
type sport
['Mark Williams', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?a WHERE { resource:Mark_Williams property:sport ?a . ?a rdf:type ontology:sport }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7322594
Q349
USER
And what about Ricardo Cleofas?
(Q7322594,P641,c(Q349))
action filter_type
action find
entity Q7322594
relation P641
type Q349
['Q7322594', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?u WHERE { resource:Q7322594 property:P641 ?u . ?u rdf:type ontology:Q349 }
Ricardo Cleofas
action filter_type
action find
entity Ricardo Cleofas
relation sport
type sport
['Ricardo Cleofas', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?u WHERE { resource:Ricardo_Cleofas property:sport ?u . ?u rdf:type ontology:sport }
[]
sport
Q5372
SYSTEM
basketball
Q5372
(Q7322594,P641,c(Q349))
action filter_type
action find
entity Q7322594
relation P641
type Q349
[ANSWER]
['Q7322594', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?u WHERE { resource:Q7322594 property:P641 ?u . ?u rdf:type ontology:Q349 }
basketball
basketball
action filter_type
action find
entity Ricardo Cleofas
relation sport
type sport
['Ricardo Cleofas', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?u WHERE { resource:Ricardo_Cleofas property:sport ?u . ?u rdf:type ontology:sport }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P101
Q349 Q2342494
USER
Which sports are the fields of work of greater number of collectables than that sport ?
(c(Q2342494),P101,c(Q349))
action greater
action find_reverse_tuple_counts
relation P101
type Q349
type Q2342494
action count
action filter_type
action find
entity Q5372
relation P101
type Q349
[{'concept': 'Q2342494'}, 'P101', {'concept': 'Q349'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?h ) AS ?y ) WHERE { ?h property:P101 ?c . ?c rdf:type ontology:Q349 . ?h rdf:type ontology:Q2342494 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { resource:Q5372 property:P101 ?q . ?q rdf:type ontology:Q349 } } . FILTER ( ?y > ?e ) }
action greater
action find_reverse_tuple_counts
relation field of work
type sport
type collectable
action count
action filter_type
action find
entity basketball
relation field of work
type sport
[{'concept': 'collectable'}, 'field of work', {'concept': 'sport'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?h ) AS ?y ) WHERE { ?h property:field_of_work ?c . ?c rdf:type ontology:sport . ?h rdf:type ontology:collectable } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { resource:basketball property:field_of_work ?q . ?q rdf:type ontology:sport } } . FILTER ( ?y > ?e ) }
[]
sport collectable
Q1109032
SYSTEM
college football
Q1109032
(c(Q2342494),P101,c(Q349))
action greater
action find_reverse_tuple_counts
relation P101
type Q349
type Q2342494
action count
action filter_type
action find
entity Q5372
relation P101
type Q349
[ANSWER] is the fields of work of greater number of collectables than that sport
[{'concept': 'Q2342494'}, 'P101', {'concept': 'Q349'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?h ) AS ?y ) WHERE { ?h property:P101 ?c . ?c rdf:type ontology:Q349 . ?h rdf:type ontology:Q2342494 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { resource:Q5372 property:P101 ?q . ?q rdf:type ontology:Q349 } } . FILTER ( ?y > ?e ) }
college football
College football is the fields of work of greater number of collectables than that sport
college football
action greater
action find_reverse_tuple_counts
relation field of work
type sport
type collectable
action count
action filter_type
action find
entity basketball
relation field of work
type sport
[{'concept': 'collectable'}, 'field of work', {'concept': 'sport'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?h ) AS ?y ) WHERE { ?h property:field_of_work ?c . ?c rdf:type ontology:sport . ?h rdf:type ontology:collectable } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { resource:basketball property:field_of_work ?q . ?q rdf:type ontology:sport } } . FILTER ( ?y > ?e ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P101
Q5127848 Q2342494
USER
How many classes and collectables work in the domain of that sport ?
(c(Q5127848),P101,Q1109032) (c(Q2342494),P101,Q1109032) (c(Q5127848),P101,Q1109032) (c(Q2342494),P101,Q1109032)
action count
action union
action filter_type
action find_reverse
entity Q1109032
relation P101
type Q5127848
action filter_type
action find_reverse
entity Q1109032
relation P101
type Q2342494
[{'concept': 'Q5127848'}, 'P101', 'Q1109032'] [{'concept': 'Q2342494'}, 'P101', 'Q1109032'] [{'concept': 'Q5127848'}, 'P101', 'Q1109032'] [{'concept': 'Q2342494'}, 'P101', 'Q1109032']
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { { ?a property:P101 resource:Q1109032 . ?a rdf:type ontology:Q5127848 } UNION { ?a property:P101 resource:Q1109032 . ?a rdf:type ontology:Q2342494 } }
action count
action union
action filter_type
action find_reverse
entity college football
relation field of work
type class
action filter_type
action find_reverse
entity college football
relation field of work
type collectable
[{'concept': 'class'}, 'field of work', 'college football'] [{'concept': 'collectable'}, 'field of work', 'college football'] [{'concept': 'class'}, 'field of work', 'college football'] [{'concept': 'collectable'}, 'field of work', 'college football']
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { { ?a property:field_of_work resource:college_football . ?a rdf:type ontology:class } UNION { ?a property:field_of_work resource:college_football . ?a rdf:type ontology:collectable } }
[]
class collectable
SYSTEM
1 classes and 1 collectables
Q5696473 Q5293210
(c(Q5127848),P101,Q1109032) (c(Q2342494),P101,Q1109032) (c(Q5127848),P101,Q1109032) (c(Q2342494),P101,Q1109032)
action count
action union
action filter_type
action find_reverse
entity Q1109032
relation P101
type Q5127848
action filter_type
action find_reverse
entity Q1109032
relation P101
type Q2342494
[ANSWER]
[{'concept': 'Q5127848'}, 'P101', 'Q1109032'] [{'concept': 'Q2342494'}, 'P101', 'Q1109032'] [{'concept': 'Q5127848'}, 'P101', 'Q1109032'] [{'concept': 'Q2342494'}, 'P101', 'Q1109032']
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { { ?a property:P101 resource:Q1109032 . ?a rdf:type ontology:Q5127848 } UNION { ?a property:P101 resource:Q1109032 . ?a rdf:type ontology:Q2342494 } }
Heckscher/Miles FBS Ranking System Don Nehlen's Tales from the West Virginia Sideline
1 classes and 1 collectables
action count
action union
action filter_type
action find_reverse
entity college football
relation field of work
type class
action filter_type
action find_reverse
entity college football
relation field of work
type collectable
[{'concept': 'class'}, 'field of work', 'college football'] [{'concept': 'collectable'}, 'field of work', 'college football'] [{'concept': 'class'}, 'field of work', 'college football'] [{'concept': 'collectable'}, 'field of work', 'college football']
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { { ?a property:field_of_work resource:college_football . ?a rdf:type ontology:class } UNION { ?a property:field_of_work resource:college_football . ?a rdf:type ontology:collectable } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q37041
P407
Q34770 Q82799
USER
Which languages are the languages of work for more number of names than classical Chinese ?
(c(Q82799),P407,c(Q34770))
action greater
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action count
action filter_type
action find
entity Q37041
relation P407
type Q34770
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?m ) AS ?f ) WHERE { ?m property:P407 ?q . ?q rdf:type ontology:Q34770 . ?m rdf:type ontology:Q82799 } GROUP BY ?q } . FILTER ( ?f > ?e ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { resource:Q37041 property:P407 ?z . ?z rdf:type ontology:Q34770 } } }
classical Chinese
action greater
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action count
action filter_type
action find
entity classical Chinese
relation language of work or name
type language
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?m ) AS ?f ) WHERE { ?m property:language_of_work_or_name ?q . ?q rdf:type ontology:language . ?m rdf:type ontology:name } GROUP BY ?q } . FILTER ( ?f > ?e ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { resource:classical_Chinese property:language_of_work_or_name ?z . ?z rdf:type ontology:language } } }
[]
language name
Q1860 Q397 Q9056
SYSTEM
English, Latin, Czech
Q1860 Q8785 Q1321 Q397 Q9056 Q8752 Q652 Q35505 Q56982 Q35308
(c(Q82799),P407,c(Q34770))
action greater
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action count
action filter_type
action find
entity Q37041
relation P407
type Q34770
[ANSWERS] are the languages of work for more number of names than classical Chinese
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?m ) AS ?f ) WHERE { ?m property:P407 ?q . ?q rdf:type ontology:Q34770 . ?m rdf:type ontology:Q82799 } GROUP BY ?q } . FILTER ( ?f > ?e ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { resource:Q37041 property:P407 ?z . ?z rdf:type ontology:Q34770 } } }
English Armenian Spanish Latin Czech Basque Italian Old Norse language Judaeo-Portuguese Old Irish
English, Latin and Czech are the languages of work for more number of names than classical Chinese
English Latin Czech
action greater
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action count
action filter_type
action find
entity classical Chinese
relation language of work or name
type language
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?m ) AS ?f ) WHERE { ?m property:language_of_work_or_name ?q . ?q rdf:type ontology:language . ?m rdf:type ontology:name } GROUP BY ?q } . FILTER ( ?f > ?e ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { resource:classical_Chinese property:language_of_work_or_name ?z . ?z rdf:type ontology:language } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q16013033
P1412
Q502895
USER
Does Benjamin N. Maltz talk in those languages ?
(Q16013033,P1412,Q1860) (Q16013033,P1412,Q397) (Q16013033,P1412,Q9056)
action is_in
entity prev_answer
action find
entity Q16013033
relation P1412
['Q16013033', 'P1412', 'Q1860'] ['Q16013033', 'P1412', 'Q397'] ['Q16013033', 'P1412', 'Q9056']
ASK WHERE { VALUES ( ?e ) { ( resource:Q1860 ) ( resource:Q8785 ) ( resource:Q1321 ) } . resource:Q16013033 property:P1412 ?e }
Benjamin N. Maltz
action is_in
entity prev_answer
action find
entity Benjamin N. Maltz
relation languages spoken, written or signed
['Benjamin N. Maltz', 'languages spoken, written or signed', 'English'] ['Benjamin N. Maltz', 'languages spoken, written or signed', 'Latin'] ['Benjamin N. Maltz', 'languages spoken, written or signed', 'Czech']
ASK WHERE { VALUES ( ?e ) { ( resource:English ) ( resource:Armenian ) ( resource:Spanish ) } . resource:Benjamin_N._Maltz property:languages_spoken,_written_or_signed ?e }
[]
common name
SYSTEM
NO
(Q16013033,P1412,Q1860) (Q16013033,P1412,Q397) (Q16013033,P1412,Q9056)
action is_in
entity prev_answer
action find
entity Q16013033
relation P1412
[ANSWER]
['Q16013033', 'P1412', 'Q1860'] ['Q16013033', 'P1412', 'Q397'] ['Q16013033', 'P1412', 'Q9056']
ASK WHERE { VALUES ( ?e ) { ( resource:Q1860 ) ( resource:Q8785 ) ( resource:Q1321 ) } . resource:Q16013033 property:P1412 ?e }
No
action is_in
entity prev_answer
action find
entity Benjamin N. Maltz
relation languages spoken, written or signed
['Benjamin N. Maltz', 'languages spoken, written or signed', 'English'] ['Benjamin N. Maltz', 'languages spoken, written or signed', 'Latin'] ['Benjamin N. Maltz', 'languages spoken, written or signed', 'Czech']
ASK WHERE { VALUES ( ?e ) { ( resource:English ) ( resource:Armenian ) ( resource:Spanish ) } . resource:Benjamin_N._Maltz property:languages_spoken,_written_or_signed ?e }
[]