Simple Question (Direct)
Simple Question
Q1149036
P1412
Q34770
USER
Which language does Jahir Barraza speak in ?
(Q1149036,P1412,c(Q34770))
action filter_type
action find
entity Q1149036
relation P1412
type Q34770
['Q1149036', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q34770 . resource:Q1149036 property:P1412 ?d }
Jahir Barraza
action filter_type
action find
entity Jahir Barraza
relation languages spoken, written or signed
type language
['Jahir Barraza', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:language . resource:Jahir_Barraza property:languages_spoken,_written_or_signed ?d }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q1149036,P1412,c(Q34770))
action filter_type
action find
entity Q1149036
relation P1412
type Q34770
Jahir Barraza speaks and [ANSWER]
['Q1149036', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q34770 . resource:Q1149036 property:P1412 ?d }
Spanish
Jahir Barraza speaks and Spanish
Spanish
action filter_type
action find
entity Jahir Barraza
relation languages spoken, written or signed
type language
['Jahir Barraza', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:language . resource:Jahir_Barraza property:languages_spoken,_written_or_signed ?d }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1149036
P734
Q82799
USER
Which name is associated with Jahir Barraza ?
(Q1149036,P734,c(Q82799))
action filter_type
action find
entity Q1149036
relation P734
type Q82799
['Q1149036', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q82799 . resource:Q1149036 property:P734 ?k }
Jahir Barraza
action filter_type
action find
entity Jahir Barraza
relation family name
type name
['Jahir Barraza', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:name . resource:Jahir_Barraza property:family_name ?k }
[]
name
Q4863271
SYSTEM
Barraza
Q4863271
(Q1149036,P734,c(Q82799))
action filter_type
action find
entity Q1149036
relation P734
type Q82799
[ANSWER] is associated with Jahir [ANSWER]
['Q1149036', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q82799 . resource:Q1149036 property:P734 ?k }
Barraza
Barraza is associated with Jahir Barraza
Barraza
action filter_type
action find
entity Jahir Barraza
relation family name
type name
['Jahir Barraza', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:name . resource:Jahir_Barraza property:family_name ?k }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2825145
Q82799
USER
And how about Adrien Courtois?
(Q2825145,P734,c(Q82799))
action filter_type
action find
entity Q2825145
relation P734
type Q82799
['Q2825145', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?m WHERE { resource:Q2825145 property:P734 ?m . ?m rdf:type ontology:Q82799 }
Adrien Courtois
action filter_type
action find
entity Adrien Courtois
relation family name
type name
['Adrien Courtois', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?m WHERE { resource:Adrien_Courtois property:family_name ?m . ?m rdf:type ontology:name }
[]
name
Q3001531
SYSTEM
Courtois
Q3001531
(Q2825145,P734,c(Q82799))
action filter_type
action find
entity Q2825145
relation P734
type Q82799
[ANSWER]
['Q2825145', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?m WHERE { resource:Q2825145 property:P734 ?m . ?m rdf:type ontology:Q82799 }
Courtois
Courtois
action filter_type
action find
entity Adrien Courtois
relation family name
type name
['Adrien Courtois', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?m WHERE { resource:Adrien_Courtois property:family_name ?m . ?m rdf:type ontology:name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q13414913
P364
Q34770 Q15416 Q2342494
USER
Which languages are the original languages of creation of greater number of television programs and collectables than Simplified Chinese ?
(c(Q15416)|c(Q2342494),P364,c(Q34770))
action greater
action union
action find_reverse_tuple_counts
relation P364
type Q34770
type Q15416
action find_reverse_tuple_counts
relation P364
type Q34770
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q13414913
relation P364
type Q15416
type Q2342494
[[{'concept': 'Q15416'}, {'concept': 'Q2342494'}], 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?u ) AS ?p ) WHERE { ?u rdf:type ?e . VALUES ( ?e ) { ( ontology:Q2342494 ) ( ontology:Q15416 ) } } GROUP BY ?j } . FILTER ( ?p > ?l ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { ?b property:P364 resource:Q13414913 . { ?b rdf:type ?h . VALUES ( ?h ) { ( ontology:Q15416 ) ( ontology:Q2342494 ) } } } } }
Simplified Chinese
action greater
action union
action find_reverse_tuple_counts
relation original language of work
type language
type television program
action find_reverse_tuple_counts
relation original language of work
type language
type collectable
action count
action filter_multi_types
action find_reverse
entity Simplified Chinese
relation original language of work
type television program
type collectable
[[{'concept': 'television program'}, {'concept': 'collectable'}], 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?u ) AS ?p ) WHERE { ?u rdf:type ?e . VALUES ( ?e ) { ( ontology:collectable ) ( ontology:television_program ) } } GROUP BY ?j } . FILTER ( ?p > ?l ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { ?b property:original_language_of_work resource:Simplified_Chinese . { ?b rdf:type ?h . VALUES ( ?h ) { ( ontology:television_program ) ( ontology:collectable ) } } } } }
[]
language television program collectable
Q1860 Q33251 Q397
SYSTEM
English, Church Slavonic, Latin
Q1860 Q8785 Q33251 Q18130932 Q1321 Q397 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q25164 Q3110592
(c(Q15416)|c(Q2342494),P364,c(Q34770))
action greater
action union
action find_reverse_tuple_counts
relation P364
type Q34770
type Q15416
action find_reverse_tuple_counts
relation P364
type Q34770
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q13414913
relation P364
type Q15416
type Q2342494
[ANSWERS] are the original languages of creation of greater number of television programs and collectables than Simplified Chinese
[[{'concept': 'Q15416'}, {'concept': 'Q2342494'}], 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?u ) AS ?p ) WHERE { ?u rdf:type ?e . VALUES ( ?e ) { ( ontology:Q2342494 ) ( ontology:Q15416 ) } } GROUP BY ?j } . FILTER ( ?p > ?l ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { ?b property:P364 resource:Q13414913 . { ?b rdf:type ?h . VALUES ( ?h ) { ( ontology:Q15416 ) ( ontology:Q2342494 ) } } } } }
English Armenian Church Slavonic Traditional Chinese Spanish Latin Czech Basque classical Chinese Italian Old Norse language Bokmål Nynorsk written Chinese
English, Church Slavonic and Latin are the original languages of creation of greater number of television programs and collectables than Simplified Chinese
English Church Slavonic Latin
action greater
action union
action find_reverse_tuple_counts
relation original language of work
type language
type television program
action find_reverse_tuple_counts
relation original language of work
type language
type collectable
action count
action filter_multi_types
action find_reverse
entity Simplified Chinese
relation original language of work
type television program
type collectable
[[{'concept': 'television program'}, {'concept': 'collectable'}], 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?u ) AS ?p ) WHERE { ?u rdf:type ?e . VALUES ( ?e ) { ( ontology:collectable ) ( ontology:television_program ) } } GROUP BY ?j } . FILTER ( ?p > ?l ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { ?b property:original_language_of_work resource:Simplified_Chinese . { ?b rdf:type ?h . VALUES ( ?h ) { ( ontology:television_program ) ( ontology:collectable ) } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q182695
P364
Q34770 Q15416 Q2342494
USER
And how about Late Old Japanese?
(c(Q15416)|c(Q2342494),P364,c(Q34770))
action greater
action union
action find_reverse_tuple_counts
relation P364
type Q34770
type Q15416
action find_reverse_tuple_counts
relation P364
type Q34770
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q182695
relation P364
type Q15416
type Q2342494
[[{'concept': 'Q15416'}, {'concept': 'Q2342494'}], 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?f ) WHERE { { ?c property:P364 ?u . ?u rdf:type ontology:Q34770 . ?c rdf:type ontology:Q15416 } UNION { ?c property:P364 ?u . ?u rdf:type ontology:Q34770 . ?c rdf:type ontology:Q2342494 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { ?j property:P364 resource:Q182695 . { { ?j rdf:type ontology:Q2342494 } UNION { ?j rdf:type ontology:Q15416 } } } } . FILTER ( ?f > ?s ) }
Late Old Japanese
action greater
action union
action find_reverse_tuple_counts
relation original language of work
type language
type television program
action find_reverse_tuple_counts
relation original language of work
type language
type collectable
action count
action filter_multi_types
action find_reverse
entity Late Old Japanese
relation original language of work
type television program
type collectable
[[{'concept': 'television program'}, {'concept': 'collectable'}], 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?f ) WHERE { { ?c property:original_language_of_work ?u . ?u rdf:type ontology:language . ?c rdf:type ontology:television_program } UNION { ?c property:original_language_of_work ?u . ?u rdf:type ontology:language . ?c rdf:type ontology:collectable } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { ?j property:original_language_of_work resource:Late_Old_Japanese . { { ?j rdf:type ontology:collectable } UNION { ?j rdf:type ontology:television_program } } } } . FILTER ( ?f > ?s ) }
[]
language television program collectable
Q1860 Q35499 Q33251
SYSTEM
English, Old Church Slavonic, Church Slavonic
Q13414913 Q1860 Q35499 Q8785 Q33251 Q18130932 Q1321 Q397 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q25164 Q3110592 Q783605
(c(Q15416)|c(Q2342494),P364,c(Q34770))
action greater
action union
action find_reverse_tuple_counts
relation P364
type Q34770
type Q15416
action find_reverse_tuple_counts
relation P364
type Q34770
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q182695
relation P364
type Q15416
type Q2342494
[ANSWERS]
[[{'concept': 'Q15416'}, {'concept': 'Q2342494'}], 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?f ) WHERE { { ?c property:P364 ?u . ?u rdf:type ontology:Q34770 . ?c rdf:type ontology:Q15416 } UNION { ?c property:P364 ?u . ?u rdf:type ontology:Q34770 . ?c rdf:type ontology:Q2342494 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { ?j property:P364 resource:Q182695 . { { ?j rdf:type ontology:Q2342494 } UNION { ?j rdf:type ontology:Q15416 } } } } . FILTER ( ?f > ?s ) }
Simplified Chinese English Old Church Slavonic Armenian Church Slavonic Traditional Chinese Spanish Latin Czech Basque classical Chinese Italian Old Norse language Bokmål Nynorsk written Chinese Written vernacular Chinese
English Old Church Slavonic Church Slavonic
action greater
action union
action find_reverse_tuple_counts
relation original language of work
type language
type television program
action find_reverse_tuple_counts
relation original language of work
type language
type collectable
action count
action filter_multi_types
action find_reverse
entity Late Old Japanese
relation original language of work
type television program
type collectable
[[{'concept': 'television program'}, {'concept': 'collectable'}], 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?f ) WHERE { { ?c property:original_language_of_work ?u . ?u rdf:type ontology:language . ?c rdf:type ontology:television_program } UNION { ?c property:original_language_of_work ?u . ?u rdf:type ontology:language . ?c rdf:type ontology:collectable } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { ?j property:original_language_of_work resource:Late_Old_Japanese . { { ?j rdf:type ontology:collectable } UNION { ?j rdf:type ontology:television_program } } } } . FILTER ( ?f > ?s ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1149036
P106
Q12737077
USER
Which occupation has Jahir Barraza as his/her 's career ?
(Q1149036,P106,c(Q12737077))
action filter_type
action find
entity Q1149036
relation P106
type Q12737077
['Q1149036', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q1149036 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
Jahir Barraza
action filter_type
action find
entity Jahir Barraza
relation occupation
type occupation
['Jahir Barraza', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Jahir_Barraza property:occupation ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q1149036,P106,c(Q12737077))
action filter_type
action find
entity Q1149036
relation P106
type Q12737077
As [ANSWER] has Jahir Barraza as his/her 's career
['Q1149036', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q1149036 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
association football player
As association football player has Jahir Barraza as his/her 's career
association football player
action filter_type
action find
entity Jahir Barraza
relation occupation
type occupation
['Jahir Barraza', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Jahir_Barraza property:occupation ?f . ?f rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q937857 Q11679043
P106
Q502895
USER
Does Akiyoshi Saitō have career as that occupation ?
(Q11679043,P106,Q937857)
action is_in
entity Q937857
action find
entity Q11679043
relation P106
['Q11679043', 'P106', 'Q937857']
ASK WHERE { resource:Q11679043 property:P106 resource:Q937857 }
association football player Akiyoshi Saitō
action is_in
entity association football player
action find
entity Akiyoshi Saitō
relation occupation
['Akiyoshi Saitō', 'occupation', 'association football player']
ASK WHERE { resource:Akiyoshi_Saitō property:occupation resource:association_football_player }
[]
common name
SYSTEM
YES
(Q11679043,P106,Q937857)
action is_in
entity Q937857
action find
entity Q11679043
relation P106
[ANSWER]
['Q11679043', 'P106', 'Q937857']
ASK WHERE { resource:Q11679043 property:P106 resource:Q937857 }
Yes
action is_in
entity association football player
action find
entity Akiyoshi Saitō
relation occupation
['Akiyoshi Saitō', 'occupation', 'association football player']
ASK WHERE { resource:Akiyoshi_Saitō property:occupation resource:association_football_player }
[]