Simple Question (Direct)
Simple Question
Q953765
P27
Q15617994
USER
Which administrative territory is Razundara Tjikuzu an inhabitant of ?
(Q953765,P27,c(Q15617994))
action filter_type
action find
entity Q953765
relation P27
type Q15617994
['Q953765', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q953765 property:P27 ?t . ?t rdf:type ontology:Q15617994 }
Razundara Tjikuzu
action filter_type
action find
entity Razundara Tjikuzu
relation country of citizenship
type designation for an administrative territorial entity
['Razundara Tjikuzu', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Razundara_Tjikuzu property:country_of_citizenship ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1030
SYSTEM
Namibia
Q1030
(Q953765,P27,c(Q15617994))
action filter_type
action find
entity Q953765
relation P27
type Q15617994
[ANSWER] is Razundara Tjikuzu an inhabitant of
['Q953765', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q953765 property:P27 ?t . ?t rdf:type ontology:Q15617994 }
Namibia
Namibia is Razundara Tjikuzu an inhabitant of
Namibia
action filter_type
action find
entity Razundara Tjikuzu
relation country of citizenship
type designation for an administrative territorial entity
['Razundara Tjikuzu', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Razundara_Tjikuzu property:country_of_citizenship ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q953765
P21
Q290
USER
Which sex does Razundara Tjikuzu have ?
(Q953765,P21,c(Q290))
action filter_type
action find
entity Q953765
relation P21
type Q290
['Q953765', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q953765 property:P21 ?d . ?d rdf:type ontology:Q290 }
Razundara Tjikuzu
action filter_type
action find
entity Razundara Tjikuzu
relation gender
type sex
['Razundara Tjikuzu', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Razundara_Tjikuzu property:gender ?d . ?d rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q953765,P21,c(Q290))
action filter_type
action find
entity Q953765
relation P21
type Q290
Razundara Tjikuzu has 1 [ANSWER]
['Q953765', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q953765 property:P21 ?d . ?d rdf:type ontology:Q290 }
male
Razundara Tjikuzu has 1 male
male
action filter_type
action find
entity Razundara Tjikuzu
relation gender
type sex
['Razundara Tjikuzu', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Razundara_Tjikuzu property:gender ?d . ?d rdf:type ontology:sex }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P21
Q290 Q502895
USER
How many sexes do approximately the same number of people have as that sex ?
(c(Q502895),P21,c(Q290))
action count
action approx
action find_reverse_tuple_counts
relation P21
type Q290
type Q502895
action count
action filter_type
action find
entity Q6581097
relation P21
type Q290
[{'concept': 'Q502895'}, 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?n ) AS ?h ) WHERE { ?n rdf:type ontology:Q502895 . ?a rdf:type ontology:Q290 . ?n property:P21 ?a } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { resource:Q6581097 property:P21 ?r . ?r rdf:type ontology:Q290 } } . FILTER ( ?h = ?j ) }
action count
action approx
action find_reverse_tuple_counts
relation gender
type sex
type common name
action count
action filter_type
action find
entity male
relation gender
type sex
[{'concept': 'common name'}, 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?n ) AS ?h ) WHERE { ?n rdf:type ontology:common_name . ?a rdf:type ontology:sex . ?n property:gender ?a } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { resource:male property:gender ?r . ?r rdf:type ontology:sex } } . FILTER ( ?h = ?j ) }
[]
sex common name
SYSTEM
1
Q6581097
(c(Q502895),P21,c(Q290))
action count
action approx
action find_reverse_tuple_counts
relation P21
type Q290
type Q502895
action count
action filter_type
action find
entity Q6581097
relation P21
type Q290
[ANSWER]
[{'concept': 'Q502895'}, 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?n ) AS ?h ) WHERE { ?n rdf:type ontology:Q502895 . ?a rdf:type ontology:Q290 . ?n property:P21 ?a } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { resource:Q6581097 property:P21 ?r . ?r rdf:type ontology:Q290 } } . FILTER ( ?h = ?j ) }
male
1
action count
action approx
action find_reverse_tuple_counts
relation gender
type sex
type common name
action count
action filter_type
action find
entity male
relation gender
type sex
[{'concept': 'common name'}, 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?n ) AS ?h ) WHERE { ?n rdf:type ontology:common_name . ?a rdf:type ontology:sex . ?n property:gender ?a } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { resource:male property:gender ?r . ?r rdf:type ontology:sex } } . FILTER ( ?h = ?j ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q664
P530
Q1048835 Q15617994
USER
How many political territories have diplomatic relationships with lesser number of administrative territories than New Zealand ?
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q664
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?q ) AS ?h ) WHERE { ?y property:P530 ?q . ?y rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { resource:Q664 property:P530 ?m . ?m rdf:type ontology:Q1048835 } } . FILTER ( ?h < ?z ) }
New Zealand
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity New Zealand
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?q ) AS ?h ) WHERE { ?y property:diplomatic_relation ?q . ?y rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { resource:New_Zealand property:diplomatic_relation ?m . ?m rdf:type ontology:political_territorial_entity } } . FILTER ( ?h < ?z ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
7
Q1000 Q781 Q778 Q769 Q685 Q691 Q766
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q664
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?q ) AS ?h ) WHERE { ?y property:P530 ?q . ?y rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { resource:Q664 property:P530 ?m . ?m rdf:type ontology:Q1048835 } } . FILTER ( ?h < ?z ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
7
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity New Zealand
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?q ) AS ?h ) WHERE { ?y property:diplomatic_relation ?q . ?y rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { resource:New_Zealand property:diplomatic_relation ?m . ?m rdf:type ontology:political_territorial_entity } } . FILTER ( ?h < ?z ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q16
P530
Q1048835 Q15617994
USER
And also tell me about Canada?
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q16
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { resource:Q16 property:P530 ?b . ?b rdf:type ontology:Q15617994 } } . FILTER ( ?o < ?j ) . { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?o ) WHERE { ?k property:P530 ?z . ?k rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q15617994 } GROUP BY ?k } }
Canada
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Canada
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { resource:Canada property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?o < ?j ) . { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?o ) WHERE { ?k property:diplomatic_relation ?z . ?k rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
10
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q16
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { resource:Q16 property:P530 ?b . ?b rdf:type ontology:Q15617994 } } . FILTER ( ?o < ?j ) . { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?o ) WHERE { ?k property:P530 ?z . ?k rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q15617994 } GROUP BY ?k } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
10
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Canada
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { resource:Canada property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?o < ?j ) . { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?o ) WHERE { ?k property:diplomatic_relation ?z . ?k rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q10515442 Q953765
P19
Q56061
USER
Which administrative territories were Razundara Tjikuzu or Kim Sun-kyu born in ?
OR((Q953765,P19,c(Q56061)), (Q10515442,P19,c(Q56061)))
action filter_type
action union
action find
entity Q953765
relation P19
action find
entity Q10515442
relation P19
type Q56061
{'OR': [['Q953765', 'P19', {'concept': 'Q56061'}], ['Q10515442', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?g WHERE { { ?v property:P19 ?g . VALUES ( ?v ) { ( resource:Q10515442 ) ( resource:Q953765 ) } } . ?g rdf:type ontology:Q56061 }
Kim Sun-kyu Razundara Tjikuzu
action filter_type
action union
action find
entity Razundara Tjikuzu
relation place of birth
action find
entity Kim Sun-kyu
relation place of birth
type administrative territorial entity
{'OR': [['Razundara Tjikuzu', 'place of birth', {'concept': 'administrative territorial entity'}], ['Kim Sun-kyu', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { ?v property:place_of_birth ?g . VALUES ( ?v ) { ( resource:Kim_Sun-kyu ) ( resource:Razundara_Tjikuzu ) } } . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q59698 Q42123
SYSTEM
Swakopmund, Yangsan
Q59698 Q42123
OR((Q953765,P19,c(Q56061)), (Q10515442,P19,c(Q56061)))
action filter_type
action union
action find
entity Q953765
relation P19
action find
entity Q10515442
relation P19
type Q56061
Razundara Tjikuzu or Kim Sun- kyu were born in [ANSWERS]
{'OR': [['Q953765', 'P19', {'concept': 'Q56061'}], ['Q10515442', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?g WHERE { { ?v property:P19 ?g . VALUES ( ?v ) { ( resource:Q10515442 ) ( resource:Q953765 ) } } . ?g rdf:type ontology:Q56061 }
Swakopmund Yangsan
Razundara Tjikuzu or Kim Sun- kyu were born in Swakopmund and Yangsan
Swakopmund Yangsan
action filter_type
action union
action find
entity Razundara Tjikuzu
relation place of birth
action find
entity Kim Sun-kyu
relation place of birth
type administrative territorial entity
{'OR': [['Razundara Tjikuzu', 'place of birth', {'concept': 'administrative territorial entity'}], ['Kim Sun-kyu', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { ?v property:place_of_birth ?g . VALUES ( ?v ) { ( resource:Kim_Sun-kyu ) ( resource:Razundara_Tjikuzu ) } } . ?g rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q10515442
P106
Q12737077
USER
What is the profession of Kim Sun-kyu ?
(Q10515442,P106,c(Q12737077))
action filter_type
action find
entity Q10515442
relation P106
type Q12737077
['Q10515442', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q10515442 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
Kim Sun-kyu
action filter_type
action find
entity Kim Sun-kyu
relation occupation
type occupation
['Kim Sun-kyu', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Kim_Sun-kyu property:occupation ?z . ?z rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q10515442,P106,c(Q12737077))
action filter_type
action find
entity Q10515442
relation P106
type Q12737077
The profession of Kim Sun-kyu is an [ANSWER]
['Q10515442', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q10515442 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
association football player
The profession of Kim Sun-kyu is an association football player
association football player
action filter_type
action find
entity Kim Sun-kyu
relation occupation
type occupation
['Kim Sun-kyu', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Kim_Sun-kyu property:occupation ?z . ?z rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q10515442
P641
Q349
USER
What was the sport that Kim Sun-kyu was a part of ?
(Q10515442,P641,c(Q349))
action filter_type
action find
entity Q10515442
relation P641
type Q349
['Q10515442', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?z WHERE { resource:Q10515442 property:P641 ?z . ?z rdf:type ontology:Q349 }
Kim Sun-kyu
action filter_type
action find
entity Kim Sun-kyu
relation sport
type sport
['Kim Sun-kyu', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?z WHERE { resource:Kim_Sun-kyu property:sport ?z . ?z rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q10515442,P641,c(Q349))
action filter_type
action find
entity Q10515442
relation P641
type Q349
The sport that Kim Sun- kyu was a part of was the [ANSWER]
['Q10515442', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?z WHERE { resource:Q10515442 property:P641 ?z . ?z rdf:type ontology:Q349 }
association football
The sport that Kim Sun- kyu was a part of was the association football
association football
action filter_type
action find
entity Kim Sun-kyu
relation sport
type sport
['Kim Sun-kyu', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?z WHERE { resource:Kim_Sun-kyu property:sport ?z . ?z rdf:type ontology:sport }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q361593
P921
Q12737077 Q732577 Q386724
USER
How many occupations were discussed in more number of publications or works than police officer ?
(c(Q732577)|c(Q386724),P921,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q361593
relation P921
type Q732577
type Q386724
[[{'concept': 'Q732577'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) ?t WHERE { ?b rdf:type ?k . VALUES ( ?k ) { ( ontology:Q732577 ) ( ontology:Q386724 ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { ?a property:P921 resource:Q361593 . { VALUES ( ?l ) { ( ontology:Q386724 ) ( ontology:Q732577 ) } . ?a rdf:type ?l } } } . FILTER ( ?f > ?o ) }
police officer
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity police officer
relation main subject
type publication
type work
[[{'concept': 'publication'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) ?t WHERE { ?b rdf:type ?k . VALUES ( ?k ) { ( ontology:publication ) ( ontology:work ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { ?a property:main_subject resource:police_officer . { VALUES ( ?l ) { ( ontology:work ) ( ontology:publication ) } . ?a rdf:type ?l } } } . FILTER ( ?f > ?o ) }
[]
occupation publication work
SYSTEM
6
Q3809586 Q2094335 Q9402 Q16746569 Q15320003 Q16003532
(c(Q732577)|c(Q386724),P921,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q361593
relation P921
type Q732577
type Q386724
[ANSWER]
[[{'concept': 'Q732577'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) ?t WHERE { ?b rdf:type ?k . VALUES ( ?k ) { ( ontology:Q732577 ) ( ontology:Q386724 ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { ?a property:P921 resource:Q361593 . { VALUES ( ?l ) { ( ontology:Q386724 ) ( ontology:Q732577 ) } . ?a rdf:type ?l } } } . FILTER ( ?f > ?o ) }
Wikipedian in Residence United States Attorney ninja high school student migrant worker middle school student
6
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity police officer
relation main subject
type publication
type work
[[{'concept': 'publication'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) ?t WHERE { ?b rdf:type ?k . VALUES ( ?k ) { ( ontology:publication ) ( ontology:work ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { ?a property:main_subject resource:police_officer . { VALUES ( ?l ) { ( ontology:work ) ( ontology:publication ) } . ?a rdf:type ?l } } } . FILTER ( ?f > ?o ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q158852
P921
Q12737077 Q732577 Q386724
USER
And what about conductor?
(c(Q732577)|c(Q386724),P921,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q158852
relation P921
type Q732577
type Q386724
[[{'concept': 'Q732577'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) ?k WHERE { VALUES ( ?v ) { ( ontology:Q732577 ) ( ontology:Q386724 ) } . ?g rdf:type ?v } GROUP BY ?k } . FILTER ( ?y > ?q ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { ?h property:P921 resource:Q158852 . { { ?h rdf:type ontology:Q732577 } UNION { ?h rdf:type ontology:Q386724 } } } } }
conductor
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity conductor
relation main subject
type publication
type work
[[{'concept': 'publication'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) ?k WHERE { VALUES ( ?v ) { ( ontology:publication ) ( ontology:work ) } . ?g rdf:type ?v } GROUP BY ?k } . FILTER ( ?y > ?q ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { ?h property:main_subject resource:conductor . { { ?h rdf:type ontology:publication } UNION { ?h rdf:type ontology:work } } } } }
[]
occupation publication work
SYSTEM
6
Q3809586 Q2094335 Q9402 Q16746569 Q15320003 Q16003532
(c(Q732577)|c(Q386724),P921,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q158852
relation P921
type Q732577
type Q386724
[ANSWER]
[[{'concept': 'Q732577'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) ?k WHERE { VALUES ( ?v ) { ( ontology:Q732577 ) ( ontology:Q386724 ) } . ?g rdf:type ?v } GROUP BY ?k } . FILTER ( ?y > ?q ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { ?h property:P921 resource:Q158852 . { { ?h rdf:type ontology:Q732577 } UNION { ?h rdf:type ontology:Q386724 } } } } }
Wikipedian in Residence United States Attorney ninja high school student migrant worker middle school student
6
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity conductor
relation main subject
type publication
type work
[[{'concept': 'publication'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) ?k WHERE { VALUES ( ?v ) { ( ontology:publication ) ( ontology:work ) } . ?g rdf:type ?v } GROUP BY ?k } . FILTER ( ?y > ?q ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { ?h property:main_subject resource:conductor . { { ?h rdf:type ontology:publication } UNION { ?h rdf:type ontology:work } } } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q953765
P54
Q1194951
USER
What is Razundara Tjikuzu a member of ?
(Q953765,P54,c(Q1194951))
action filter_type
action find
entity Q953765
relation P54
type Q1194951
['Q953765', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?m WHERE { resource:Q953765 property:P54 ?m . ?m rdf:type ontology:Q1194951 }
Razundara Tjikuzu
action filter_type
action find
entity Razundara Tjikuzu
relation member of sports team
type national sports team
['Razundara Tjikuzu', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?m WHERE { resource:Razundara_Tjikuzu property:member_of_sports_team ?m . ?m rdf:type ontology:national_sports_team }
[]
national sports team
Q328687
SYSTEM
Namibia national football team
Q328687
(Q953765,P54,c(Q1194951))
action filter_type
action find
entity Q953765
relation P54
type Q1194951
Razundara Tjikuzu a member of is the [ANSWER]
['Q953765', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?m WHERE { resource:Q953765 property:P54 ?m . ?m rdf:type ontology:Q1194951 }
Namibia national football team
Razundara Tjikuzu a member of is the Namibia national football team
Namibia national football team
action filter_type
action find
entity Razundara Tjikuzu
relation member of sports team
type national sports team
['Razundara Tjikuzu', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?m WHERE { resource:Razundara_Tjikuzu property:member_of_sports_team ?m . ?m rdf:type ontology:national_sports_team }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1030
P610
Q14524493
USER
Which is the highest peak of Namibia ?
(Q1030,P610,c(Q14524493))
action filter_type
action find
entity Q1030
relation P610
type Q14524493
['Q1030', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?v WHERE { resource:Q1030 property:P610 ?v . ?v rdf:type ontology:Q14524493 }
Namibia
action filter_type
action find
entity Namibia
relation highest point
type terrain
['Namibia', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?v WHERE { resource:Namibia property:highest_point ?v . ?v rdf:type ontology:terrain }
[]
terrain
Q897834
SYSTEM
Brandberg Mountain
Q897834
(Q1030,P610,c(Q14524493))
action filter_type
action find
entity Q1030
relation P610
type Q14524493
Is the highest peak of Namibia [ANSWER]
['Q1030', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?v WHERE { resource:Q1030 property:P610 ?v . ?v rdf:type ontology:Q14524493 }
Brandberg Mountain
Is the highest peak of Namibia Brandberg Mountain
Brandberg Mountain
action filter_type
action find
entity Namibia
relation highest point
type terrain
['Namibia', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?v WHERE { resource:Namibia property:highest_point ?v . ?v rdf:type ontology:terrain }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4236
Q14524493
USER
And what about Siebengebirge?
(Q4236,P610,c(Q14524493))
action filter_type
action find
entity Q4236
relation P610
type Q14524493
['Q4236', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?m WHERE { resource:Q4236 property:P610 ?m . ?m rdf:type ontology:Q14524493 }
Siebengebirge
action filter_type
action find
entity Siebengebirge
relation highest point
type terrain
['Siebengebirge', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?m WHERE { resource:Siebengebirge property:highest_point ?m . ?m rdf:type ontology:terrain }
[]
terrain
Q724498
SYSTEM
Großer Ölberg
Q724498
(Q4236,P610,c(Q14524493))
action filter_type
action find
entity Q4236
relation P610
type Q14524493
[ANSWER]
['Q4236', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?m WHERE { resource:Q4236 property:P610 ?m . ?m rdf:type ontology:Q14524493 }
Großer Ölberg
Großer Ölberg
action filter_type
action find
entity Siebengebirge
relation highest point
type terrain
['Siebengebirge', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?m WHERE { resource:Siebengebirge property:highest_point ?m . ?m rdf:type ontology:terrain }
[]