Simple Question (Direct)
Simple Question
Q5676840
P734
Q82799
USER
Which name is associated with Harvest Smith ?
(Q5676840,P734,c(Q82799))
action filter_type
action find
entity Q5676840
relation P734
type Q82799
['Q5676840', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?s WHERE { resource:Q5676840 property:P734 ?s . ?s rdf:type ontology:Q82799 }
Harvest Smith
action filter_type
action find
entity Harvest Smith
relation family name
type name
['Harvest Smith', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?s WHERE { resource:Harvest_Smith property:family_name ?s . ?s rdf:type ontology:name }
[]
name
Q1158446
SYSTEM
Smith
Q1158446
(Q5676840,P734,c(Q82799))
action filter_type
action find
entity Q5676840
relation P734
type Q82799
He [ANSWER] is associated with Harvest [ANSWER]
['Q5676840', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?s WHERE { resource:Q5676840 property:P734 ?s . ?s rdf:type ontology:Q82799 }
Smith
He Smith is associated with Harvest Smith
Smith
action filter_type
action find
entity Harvest Smith
relation family name
type name
['Harvest Smith', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?s WHERE { resource:Harvest_Smith property:family_name ?s . ?s rdf:type ontology:name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q17659194 Q1158446
P407
Q34770
USER
Which languages are Smith or 2007 Twenty20 World Championship: India vs Pakistan composed in ?
OR((Q1158446,P407,c(Q34770)), (Q17659194,P407,c(Q34770)))
action filter_type
action union
action find
entity Q1158446
relation P407
action find
entity Q17659194
relation P407
type Q34770
{'OR': [['Q1158446', 'P407', {'concept': 'Q34770'}], ['Q17659194', 'P407', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?p WHERE { { ?w property:P407 ?p . VALUES ( ?w ) { ( resource:Q17659194 ) ( resource:Q1158446 ) } } . ?p rdf:type ontology:Q34770 }
2007 Twenty20 World Championship: India vs Pakistan Smith
action filter_type
action union
action find
entity Smith
relation language of work or name
action find
entity 2007 Twenty20 World Championship: India vs Pakistan
relation language of work or name
type language
{'OR': [['Smith', 'language of work or name', {'concept': 'language'}], ['2007 Twenty20 World Championship: India vs Pakistan', 'language of work or name', {'concept': 'language'}]]}
SELECT DISTINCT ?p WHERE { { ?w property:language_of_work_or_name ?p . VALUES ( ?w ) { ( resource:2007_Twenty20_World_Championship:_India_vs_Pakistan ) ( resource:Smith ) } } . ?p rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
OR((Q1158446,P407,c(Q34770)), (Q17659194,P407,c(Q34770)))
action filter_type
action union
action find
entity Q1158446
relation P407
action find
entity Q17659194
relation P407
type Q34770
[ANSWER] is Smith or 2007 Twenty20 World Championship: India vs Pakistan composed in
{'OR': [['Q1158446', 'P407', {'concept': 'Q34770'}], ['Q17659194', 'P407', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?p WHERE { { ?w property:P407 ?p . VALUES ( ?w ) { ( resource:Q17659194 ) ( resource:Q1158446 ) } } . ?p rdf:type ontology:Q34770 }
English
English is Smith or 2007 Twenty20 World Championship: India vs Pakistan composed in
English
action filter_type
action union
action find
entity Smith
relation language of work or name
action find
entity 2007 Twenty20 World Championship: India vs Pakistan
relation language of work or name
type language
{'OR': [['Smith', 'language of work or name', {'concept': 'language'}], ['2007 Twenty20 World Championship: India vs Pakistan', 'language of work or name', {'concept': 'language'}]]}
SELECT DISTINCT ?p WHERE { { ?w property:language_of_work_or_name ?p . VALUES ( ?w ) { ( resource:2007_Twenty20_World_Championship:_India_vs_Pakistan ) ( resource:Smith ) } } . ?p rdf:type ontology:language }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q2274646
P282
Q8192 Q34770
USER
How many writing systems are utilized as the script for greater number of languages than Inuktitut syllabics ?
(c(Q34770),P282,c(Q8192))
action count
action greater
action find_reverse_tuple_counts
relation P282
type Q8192
type Q34770
action count
action filter_type
action find
entity Q2274646
relation P282
type Q8192
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q8192'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?p ) AS ?j ) WHERE { ?o rdf:type ontology:Q8192 . ?p rdf:type ontology:Q34770 . ?p property:P282 ?o } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { resource:Q2274646 property:P282 ?l . ?l rdf:type ontology:Q8192 } } . FILTER ( ?j > ?k ) }
Inuktitut syllabics
action count
action greater
action find_reverse_tuple_counts
relation writing system
type writing system
type language
action count
action filter_type
action find
entity Inuktitut syllabics
relation writing system
type writing system
[{'concept': 'language'}, 'writing system', {'concept': 'writing system'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?p ) AS ?j ) WHERE { ?o rdf:type ontology:writing_system . ?p rdf:type ontology:language . ?p property:writing_system ?o } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { resource:Inuktitut_syllabics property:writing_system ?l . ?l rdf:type ontology:writing_system } } . FILTER ( ?j > ?k ) }
[]
writing system language
SYSTEM
3
Q82946 Q30972 Q48332
(c(Q34770),P282,c(Q8192))
action count
action greater
action find_reverse_tuple_counts
relation P282
type Q8192
type Q34770
action count
action filter_type
action find
entity Q2274646
relation P282
type Q8192
[ANSWER]
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q8192'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?p ) AS ?j ) WHERE { ?o rdf:type ontology:Q8192 . ?p rdf:type ontology:Q34770 . ?p property:P282 ?o } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { resource:Q2274646 property:P282 ?l . ?l rdf:type ontology:Q8192 } } . FILTER ( ?j > ?k ) }
katakana Linear A hiragana
3
action count
action greater
action find_reverse_tuple_counts
relation writing system
type writing system
type language
action count
action filter_type
action find
entity Inuktitut syllabics
relation writing system
type writing system
[{'concept': 'language'}, 'writing system', {'concept': 'writing system'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?p ) AS ?j ) WHERE { ?o rdf:type ontology:writing_system . ?p rdf:type ontology:language . ?p property:writing_system ?o } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { resource:Inuktitut_syllabics property:writing_system ?l . ?l rdf:type ontology:writing_system } } . FILTER ( ?j > ?k ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q38592
P282
Q8192 Q34770
USER
And what about Devanagari?
(c(Q34770),P282,c(Q8192))
action count
action greater
action find_reverse_tuple_counts
relation P282
type Q8192
type Q34770
action count
action filter_type
action find
entity Q38592
relation P282
type Q8192
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q8192'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { FILTER ( ?s > ?q ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { resource:Q38592 property:P282 ?z . ?z rdf:type ontology:Q8192 } } . { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?s ) WHERE { ?b property:P282 ?g . ?g rdf:type ontology:Q8192 . ?b rdf:type ontology:Q34770 } GROUP BY ?g } }
Devanagari
action count
action greater
action find_reverse_tuple_counts
relation writing system
type writing system
type language
action count
action filter_type
action find
entity Devanagari
relation writing system
type writing system
[{'concept': 'language'}, 'writing system', {'concept': 'writing system'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { FILTER ( ?s > ?q ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { resource:Devanagari property:writing_system ?z . ?z rdf:type ontology:writing_system } } . { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?s ) WHERE { ?b property:writing_system ?g . ?g rdf:type ontology:writing_system . ?b rdf:type ontology:language } GROUP BY ?g } }
[]
writing system language
SYSTEM
3
Q82946 Q30972 Q48332
(c(Q34770),P282,c(Q8192))
action count
action greater
action find_reverse_tuple_counts
relation P282
type Q8192
type Q34770
action count
action filter_type
action find
entity Q38592
relation P282
type Q8192
[ANSWER]
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q8192'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { FILTER ( ?s > ?q ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { resource:Q38592 property:P282 ?z . ?z rdf:type ontology:Q8192 } } . { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?s ) WHERE { ?b property:P282 ?g . ?g rdf:type ontology:Q8192 . ?b rdf:type ontology:Q34770 } GROUP BY ?g } }
katakana Linear A hiragana
3
action count
action greater
action find_reverse_tuple_counts
relation writing system
type writing system
type language
action count
action filter_type
action find
entity Devanagari
relation writing system
type writing system
[{'concept': 'language'}, 'writing system', {'concept': 'writing system'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) WHERE { FILTER ( ?s > ?q ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { resource:Devanagari property:writing_system ?z . ?z rdf:type ontology:writing_system } } . { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?s ) WHERE { ?b property:writing_system ?g . ?g rdf:type ontology:writing_system . ?b rdf:type ontology:language } GROUP BY ?g } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5676840
P106
Q12737077
USER
What does Harvest Smith do for a living ?
(Q5676840,P106,c(Q12737077))
action filter_type
action find
entity Q5676840
relation P106
type Q12737077
['Q5676840', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q12737077 . resource:Q5676840 property:P106 ?w }
Harvest Smith
action filter_type
action find
entity Harvest Smith
relation occupation
type occupation
['Harvest Smith', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:occupation . resource:Harvest_Smith property:occupation ?w }
[]
occupation
Q3665646
SYSTEM
basketball player
Q3665646
(Q5676840,P106,c(Q12737077))
action filter_type
action find
entity Q5676840
relation P106
type Q12737077
Harvest Smith does the [ANSWER] for a living
['Q5676840', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q12737077 . resource:Q5676840 property:P106 ?w }
basketball player
Harvest Smith does the basketball player for a living
basketball player
action filter_type
action find
entity Harvest Smith
relation occupation
type occupation
['Harvest Smith', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:occupation . resource:Harvest_Smith property:occupation ?w }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5676840
P641
Q349
USER
Which sport was that person a part of ?
(Q3665646,P641,c(Q349))
action filter_type
action find
entity Q5676840
relation P641
type Q349
['Q3665646', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?l WHERE { resource:Q5676840 property:P641 ?l . ?l rdf:type ontology:Q349 }
Harvest Smith
action filter_type
action find
entity Harvest Smith
relation sport
type sport
['basketball player', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?l WHERE { resource:Harvest_Smith property:sport ?l . ?l rdf:type ontology:sport }
[]
sport
Q5372
SYSTEM
basketball
Q5372
(Q3665646,P641,c(Q349))
action filter_type
action find
entity Q5676840
relation P641
type Q349
The [ANSWER] was that person a part of
['Q3665646', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?l WHERE { resource:Q5676840 property:P641 ?l . ?l rdf:type ontology:Q349 }
basketball
The basketball was that person a part of
basketball
action filter_type
action find
entity Harvest Smith
relation sport
type sport
['basketball player', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?l WHERE { resource:Harvest_Smith property:sport ?l . ?l rdf:type ontology:sport }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q5372 Q2662668
P641
Q502895
USER
Does Stefan Marković play that sport ?
(Q2662668,P641,Q5372)
action is_in
entity Q5372
action find
entity Q2662668
relation P641
['Q2662668', 'P641', 'Q5372']
ASK WHERE { resource:Q2662668 property:P641 resource:Q5372 }
basketball Stefan Marković
action is_in
entity basketball
action find
entity Stefan Marković
relation sport
['Stefan Marković', 'sport', 'basketball']
ASK WHERE { resource:Stefan_Marković property:sport resource:basketball }
[]
common name
SYSTEM
YES
(Q2662668,P641,Q5372)
action is_in
entity Q5372
action find
entity Q2662668
relation P641
[ANSWER]
['Q2662668', 'P641', 'Q5372']
ASK WHERE { resource:Q2662668 property:P641 resource:Q5372 }
Yes
action is_in
entity basketball
action find
entity Stefan Marković
relation sport
['Stefan Marković', 'sport', 'basketball']
ASK WHERE { resource:Stefan_Marković property:sport resource:basketball }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q82799 Q386724 Q17335294
USER
How many names are expressed in atleast 1 works or coats of arms ?
(c(Q386724)|c(Q17335294),P180,c(Q82799))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q386724
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
value 1
[[{'concept': 'Q386724'}, {'concept': 'Q17335294'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?u ) WHERE { ?z rdf:type ?r . VALUES ( ?r ) { ( ontology:Q386724 ) ( ontology:Q17335294 ) } } GROUP BY ?j } . FILTER ( ?u >= 1 ) }
action count
action atleast
action union
action find_reverse_tuple_counts
relation depicts
type name
type work
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
value 1
[[{'concept': 'work'}, {'concept': 'flag or coat of arms'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?u ) WHERE { ?z rdf:type ?r . VALUES ( ?r ) { ( ontology:work ) ( ontology:flag_or_coat_of_arms ) } } GROUP BY ?j } . FILTER ( ?u >= 1 ) }
[]
name work flag or coat of arms
SYSTEM
3
Q726 Q144 Q43115
(c(Q386724)|c(Q17335294),P180,c(Q82799))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q386724
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
value 1
[ANSWER]
[[{'concept': 'Q386724'}, {'concept': 'Q17335294'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?u ) WHERE { ?z rdf:type ?r . VALUES ( ?r ) { ( ontology:Q386724 ) ( ontology:Q17335294 ) } } GROUP BY ?j } . FILTER ( ?u >= 1 ) }
horse dog saint
3
action count
action atleast
action union
action find_reverse_tuple_counts
relation depicts
type name
type work
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
value 1
[[{'concept': 'work'}, {'concept': 'flag or coat of arms'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?u ) WHERE { ?z rdf:type ?r . VALUES ( ?r ) { ( ontology:work ) ( ontology:flag_or_coat_of_arms ) } } GROUP BY ?j } . FILTER ( ?u >= 1 ) }
[]