Simple Question (Direct)
Simple Question
Q11645051
P106
Q12737077
USER
What is the job of Isao Nonaka ?
(Q11645051,P106,c(Q12737077))
action filter_type
action find
entity Q11645051
relation P106
type Q12737077
['Q11645051', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q11645051 property:P106 ?o . ?o rdf:type ontology:Q12737077 }
Isao Nonaka
action filter_type
action find
entity Isao Nonaka
relation occupation
type occupation
['Isao Nonaka', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Isao_Nonaka property:occupation ?o . ?o rdf:type ontology:occupation }
[]
occupation
Q33999
SYSTEM
actor
Q33999
(Q11645051,P106,c(Q12737077))
action filter_type
action find
entity Q11645051
relation P106
type Q12737077
The job of Isao Nonaka is an [ANSWER]
['Q11645051', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q11645051 property:P106 ?o . ?o rdf:type ontology:Q12737077 }
actor
The job of Isao Nonaka is an actor
actor
action filter_type
action find
entity Isao Nonaka
relation occupation
type occupation
['Isao Nonaka', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Isao_Nonaka property:occupation ?o . ?o rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11645051
P161
Q5398426
USER
Which television series stars that person as actor ?
(c(Q5398426),P161,Q33999)
action filter_type
action find_reverse
entity Q11645051
relation P161
type Q5398426
[{'concept': 'Q5398426'}, 'P161', 'Q33999']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q5398426 . ?q property:P161 resource:Q11645051 }
Isao Nonaka
action filter_type
action find_reverse
entity Isao Nonaka
relation cast member
type television series
[{'concept': 'television series'}, 'cast member', 'actor']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:television_series . ?q property:cast_member resource:Isao_Nonaka }
[]
television series
Q1275104
SYSTEM
Gunshi Kanbei
Q1275104
(c(Q5398426),P161,Q33999)
action filter_type
action find_reverse
entity Q11645051
relation P161
type Q5398426
[ANSWER] stars that person as actor
[{'concept': 'Q5398426'}, 'P161', 'Q33999']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q5398426 . ?q property:P161 resource:Q11645051 }
Gunshi Kanbei
Gunshi Kanbei stars that person as actor
Gunshi Kanbei
action filter_type
action find_reverse
entity Isao Nonaka
relation cast member
type television series
[{'concept': 'television series'}, 'cast member', 'actor']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:television_series . ?q property:cast_member resource:Isao_Nonaka }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11645051
P734
Q82799
USER
Who has the surname Isao Nonaka ?
(Q11645051,P734,c(Q82799))
action filter_type
action find
entity Q11645051
relation P734
type Q82799
['Q11645051', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q11645051 property:P734 ?u . ?u rdf:type ontology:Q82799 }
Isao Nonaka
action filter_type
action find
entity Isao Nonaka
relation family name
type name
['Isao Nonaka', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Isao_Nonaka property:family_name ?u . ?u rdf:type ontology:name }
[]
name
Q23540815
SYSTEM
Nonaka
Q23540815
(Q11645051,P734,c(Q82799))
action filter_type
action find
entity Q11645051
relation P734
type Q82799
To [ANSWER] has the surname Isao [ANSWER]
['Q11645051', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q11645051 property:P734 ?u . ?u rdf:type ontology:Q82799 }
Nonaka
To Nonaka has the surname Isao Nonaka
Nonaka
action filter_type
action find
entity Isao Nonaka
relation family name
type name
['Isao Nonaka', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Isao_Nonaka property:family_name ?u . ?u rdf:type ontology:name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q24730879
Q82799
USER
And also tell me about Henrik Madsen?
(Q24730879,P734,c(Q82799))
action filter_type
action find
entity Q24730879
relation P734
type Q82799
['Q24730879', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?e WHERE { resource:Q24730879 property:P734 ?e . ?e rdf:type ontology:Q82799 }
Henrik Madsen
action filter_type
action find
entity Henrik Madsen
relation family name
type name
['Henrik Madsen', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?e WHERE { resource:Henrik_Madsen property:family_name ?e . ?e rdf:type ontology:name }
[]
name
Q16876242
SYSTEM
Madsen
Q16876242
(Q24730879,P734,c(Q82799))
action filter_type
action find
entity Q24730879
relation P734
type Q82799
[ANSWER]
['Q24730879', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?e WHERE { resource:Q24730879 property:P734 ?e . ?e rdf:type ontology:Q82799 }
Madsen
Madsen
action filter_type
action find
entity Henrik Madsen
relation family name
type name
['Henrik Madsen', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?e WHERE { resource:Henrik_Madsen property:family_name ?e . ?e rdf:type ontology:name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q34909
P407
Q34770 Q82799
USER
Which languages are the languages of work for around the same number of names as Old Icelandic ?
(c(Q82799),P407,c(Q34770))
action approx
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action count
action filter_type
action find
entity Q34909
relation P407
type Q34770
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?c ) WHERE { ?b property:P407 ?v . ?v rdf:type ontology:Q34770 . ?b rdf:type ontology:Q82799 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { resource:Q34909 property:P407 ?d . ?d rdf:type ontology:Q34770 } } . FILTER ( ?c = ?e ) }
Old Icelandic
action approx
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action count
action filter_type
action find
entity Old Icelandic
relation language of work or name
type language
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?c ) WHERE { ?b property:language_of_work_or_name ?v . ?v rdf:type ontology:language . ?b rdf:type ontology:name } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { resource:Old_Icelandic property:language_of_work_or_name ?d . ?d rdf:type ontology:language } } . FILTER ( ?c = ?e ) }
[]
language name
Q447117 Q35499 Q35726
SYSTEM
Old Egyptian, Old Church Slavonic, Etruscan
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q1321 Q33976 Q33879 Q10498031 Q397 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q82799),P407,c(Q34770))
action approx
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action count
action filter_type
action find
entity Q34909
relation P407
type Q34770
[ANSWERS] are the languages of work for around the same number of names as Old Icelandic
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?c ) WHERE { ?b property:P407 ?v . ?v rdf:type ontology:Q34770 . ?b rdf:type ontology:Q82799 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { resource:Q34909 property:P407 ?d . ?d rdf:type ontology:Q34770 } } . FILTER ( ?c = ?e ) }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak Spanish Sardinian language Pangasinan language Old East Norse Latin Czech Basque classical Chinese Italian Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
Old Egyptian, Old Church Slavonic and Etruscan are the languages of work for around the same number of names as Old Icelandic
Old Egyptian Old Church Slavonic Etruscan
action approx
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action count
action filter_type
action find
entity Old Icelandic
relation language of work or name
type language
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?c ) WHERE { ?b property:language_of_work_or_name ?v . ?v rdf:type ontology:language . ?b rdf:type ontology:name } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { resource:Old_Icelandic property:language_of_work_or_name ?d . ?d rdf:type ontology:language } } . FILTER ( ?c = ?e ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q82799 Q838948 Q11060274
USER
Which names are depicted in around 61 works of art or prints ?
(c(Q838948)|c(Q11060274),P180,c(Q82799))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q838948
action find_reverse_tuple_counts
relation P180
type Q82799
type Q11060274
value 61
[[{'concept': 'Q838948'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) ?d WHERE { VALUES ( ?c ) { ( ontology:Q11060274 ) ( ontology:Q838948 ) } . ?a rdf:type ?c } GROUP BY ?d } . FILTER ( ?i = 61 ) }
action approx
action union
action find_reverse_tuple_counts
relation depicts
type name
type work of art
action find_reverse_tuple_counts
relation depicts
type name
type print
value 61
[[{'concept': 'work of art'}, {'concept': 'print'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) ?d WHERE { VALUES ( ?c ) { ( ontology:print ) ( ontology:work_of_art ) } . ?a rdf:type ?c } GROUP BY ?d } . FILTER ( ?i = 61 ) }
[]
name work of art print
Q5 Q144
SYSTEM
human, dog
Q5 Q144
(c(Q838948)|c(Q11060274),P180,c(Q82799))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q838948
action find_reverse_tuple_counts
relation P180
type Q82799
type Q11060274
value 61
[ANSWERS] are depicted in around 61 works of art or prints
[[{'concept': 'Q838948'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) ?d WHERE { VALUES ( ?c ) { ( ontology:Q11060274 ) ( ontology:Q838948 ) } . ?a rdf:type ?c } GROUP BY ?d } . FILTER ( ?i = 61 ) }
human dog
Human and dog are depicted in around 61 works of art or prints
human dog
action approx
action union
action find_reverse_tuple_counts
relation depicts
type name
type work of art
action find_reverse_tuple_counts
relation depicts
type name
type print
value 61
[[{'concept': 'work of art'}, {'concept': 'print'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) ?d WHERE { VALUES ( ?c ) { ( ontology:print ) ( ontology:work_of_art ) } . ?a rdf:type ?c } GROUP BY ?d } . FILTER ( ?i = 61 ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P361
Q16686022 Q502895
USER
How many natural physical objects and people are a part of that name ?
(c(Q16686022),P361,Q5) (c(Q502895),P361,Q5) (c(Q16686022),P361,Q5) (c(Q502895),P361,Q5) (c(Q16686022),P361,Q144) (c(Q502895),P361,Q144)
[{'concept': 'Q16686022'}, 'P361', 'Q5'] [{'concept': 'Q502895'}, 'P361', 'Q5'] [{'concept': 'Q16686022'}, 'P361', 'Q5'] [{'concept': 'Q502895'}, 'P361', 'Q5'] [{'concept': 'Q16686022'}, 'P361', 'Q144'] [{'concept': 'Q502895'}, 'P361', 'Q144']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P361 resource:Q823310 } UNION { ?y property:P361 resource:Q823310 } UNION { ?z property:P361 resource:Q823310 } UNION { ?y property:P361 resource:Q823310 } UNION { ?z property:P361 resource:Q13511509 } UNION { ?y property:P361 resource:Q13511509 } } . ?z rdf:type ontology:Q16686022 . ?y rdf:type ontology:Q502895 }
[{'concept': 'natural physical object'}, 'part of', 'human'] [{'concept': 'common name'}, 'part of', 'human'] [{'concept': 'natural physical object'}, 'part of', 'human'] [{'concept': 'common name'}, 'part of', 'human'] [{'concept': 'natural physical object'}, 'part of', 'dog'] [{'concept': 'common name'}, 'part of', 'dog']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:part_of resource:human } UNION { ?y property:part_of resource:human } UNION { ?z property:part_of resource:human } UNION { ?y property:part_of resource:human } UNION { ?z property:part_of resource:dog } UNION { ?y property:part_of resource:dog } } . ?z rdf:type ontology:natural_physical_object . ?y rdf:type ontology:common_name }
[]
natural physical object common name
Quantitative|Count|Mult. entity type|Clarification
Q5
SYSTEM
Did you mean human ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P361 resource:Q823310 } UNION { ?y property:P361 resource:Q823310 } UNION { ?z property:P361 resource:Q823310 } UNION { ?y property:P361 resource:Q823310 } UNION { ?z property:P361 resource:Q13511509 } UNION { ?y property:P361 resource:Q13511509 } } . ?z rdf:type ontology:Q16686022 . ?y rdf:type ontology:Q502895 }
Did you mean human ?
human
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:part_of resource:human } UNION { ?y property:part_of resource:human } UNION { ?z property:part_of resource:human } UNION { ?y property:part_of resource:human } UNION { ?z property:part_of resource:dog } UNION { ?y property:part_of resource:dog } } . ?z rdf:type ontology:natural_physical_object . ?y rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q16686022),P361,Q5) (c(Q502895),P361,Q5) (c(Q16686022),P361,Q5) (c(Q502895),P361,Q5) (c(Q16686022),P361,Q144) (c(Q502895),P361,Q144)
[{'concept': 'Q16686022'}, 'P361', 'Q5'] [{'concept': 'Q502895'}, 'P361', 'Q5'] [{'concept': 'Q16686022'}, 'P361', 'Q5'] [{'concept': 'Q502895'}, 'P361', 'Q5'] [{'concept': 'Q16686022'}, 'P361', 'Q144'] [{'concept': 'Q502895'}, 'P361', 'Q144']
[{'concept': 'natural physical object'}, 'part of', 'human'] [{'concept': 'common name'}, 'part of', 'human'] [{'concept': 'natural physical object'}, 'part of', 'human'] [{'concept': 'common name'}, 'part of', 'human'] [{'concept': 'natural physical object'}, 'part of', 'dog'] [{'concept': 'common name'}, 'part of', 'dog']
[]
SYSTEM
1 natural physical objects and 1 people
Q3972277 Q23852
(c(Q16686022),P361,Q5) (c(Q502895),P361,Q5) (c(Q16686022),P361,Q5) (c(Q502895),P361,Q5) (c(Q16686022),P361,Q144) (c(Q502895),P361,Q144)
[ANSWER]
[{'concept': 'Q16686022'}, 'P361', 'Q5'] [{'concept': 'Q502895'}, 'P361', 'Q5'] [{'concept': 'Q16686022'}, 'P361', 'Q5'] [{'concept': 'Q502895'}, 'P361', 'Q5'] [{'concept': 'Q16686022'}, 'P361', 'Q144'] [{'concept': 'Q502895'}, 'P361', 'Q144']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P361 resource:Q823310 } UNION { ?y property:P361 resource:Q823310 } UNION { ?z property:P361 resource:Q823310 } UNION { ?y property:P361 resource:Q823310 } UNION { ?z property:P361 resource:Q13511509 } UNION { ?y property:P361 resource:Q13511509 } } . ?z rdf:type ontology:Q16686022 . ?y rdf:type ontology:Q502895 }
Stefania Andriola human body
1 natural physical objects and 1 people
[{'concept': 'natural physical object'}, 'part of', 'human'] [{'concept': 'common name'}, 'part of', 'human'] [{'concept': 'natural physical object'}, 'part of', 'human'] [{'concept': 'common name'}, 'part of', 'human'] [{'concept': 'natural physical object'}, 'part of', 'dog'] [{'concept': 'common name'}, 'part of', 'dog']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:part_of resource:human } UNION { ?y property:part_of resource:human } UNION { ?z property:part_of resource:human } UNION { ?y property:part_of resource:human } UNION { ?z property:part_of resource:dog } UNION { ?y property:part_of resource:dog } } . ?z rdf:type ontology:natural_physical_object . ?y rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q82955
P921
Q12737077 Q2342494 Q191067
USER
Which occupations were less number of collectables or articles mainly about than politician ?
(c(Q2342494)|c(Q191067),P921,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action count
action filter_multi_types
action find_reverse
entity Q82955
relation P921
type Q2342494
type Q191067
[[{'concept': 'Q2342494'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?x ) AS ?d ) WHERE { VALUES ( ?j ) { ( ontology:Q2342494 ) ( ontology:Q191067 ) } . ?x rdf:type ?j } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { ?l property:P921 resource:Q82955 . { ?l rdf:type ?u . VALUES ( ?u ) { ( ontology:Q2342494 ) ( ontology:Q191067 ) } } } } . FILTER ( ?d < ?n ) }
politician
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action count
action filter_multi_types
action find_reverse
entity politician
relation main subject
type collectable
type article
[[{'concept': 'collectable'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?x ) AS ?d ) WHERE { VALUES ( ?j ) { ( ontology:collectable ) ( ontology:article ) } . ?x rdf:type ?j } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { ?l property:main_subject resource:politician . { ?l rdf:type ?u . VALUES ( ?u ) { ( ontology:collectable ) ( ontology:article ) } } } } . FILTER ( ?d < ?n ) }
[]
occupation collectable article
Q131512 Q16707842 Q9045502
SYSTEM
farmer, Member of Parliament in the United Kingdom, member of the Parliament of Norway
Q15637082 Q911554 Q9045502 Q2666591 Q1124183 Q5185440 Q765778 Q33999 Q36180 Q3809586 Q3315094 Q622807 Q7358 Q131512 Q1708232 Q2094335 Q842782 Q378622 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q618536 Q2961580 Q14128148 Q814356 Q101539 Q168559 Q1058375 Q16556694 Q4991371 Q486839 Q899758 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q483501 Q1114448 Q16533 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q17143199 Q384593 Q2095549 Q372436 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q2342494)|c(Q191067),P921,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action count
action filter_multi_types
action find_reverse
entity Q82955
relation P921
type Q2342494
type Q191067
[ANSWERS] less number of collectables or articles mainly about than politician
[[{'concept': 'Q2342494'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?x ) AS ?d ) WHERE { VALUES ( ?j ) { ( ontology:Q2342494 ) ( ontology:Q191067 ) } . ?x rdf:type ?j } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { ?l property:P921 resource:Q82955 . { ?l rdf:type ?u . VALUES ( ?u ) { ( ontology:Q2342494 ) ( ontology:Q191067 ) } } } } . FILTER ( ?d < ?n ) }
industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve lumberjack Crime scene cleanup organist actor writer Wikipedian in Residence Prime Minister of Hungary seiyū clown farmer medallist United States Attorney detective racing driver Member of the Western Australian Legislative Council member of the Victorian Legislative Assembly journalist classical philologist civil servant neuroscientist veterinarian street musician pottery member of the Virginia House of Delegates candidate taxi driver gridiron football player call girl flight attendant political commissar double agent member of the Lok Sabha soldier member of parliament violist Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor war correspondent Deputy to the Dáil artist cartoonist judge nanny caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor comedian photographer peasant missionary United States federal judge musician medical examiner police officer aviator statesman rag-and-bone man police officer baseball umpire middle school student Member of Parliament in the United Kingdom
Farmer, Member of Parliament in the United Kingdom and member of the Parliament of Norway less number of collectables or articles mainly about than politician
farmer Member of Parliament in the United Kingdom member of the Parliament of Norway
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action count
action filter_multi_types
action find_reverse
entity politician
relation main subject
type collectable
type article
[[{'concept': 'collectable'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?x ) AS ?d ) WHERE { VALUES ( ?j ) { ( ontology:collectable ) ( ontology:article ) } . ?x rdf:type ?j } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { ?l property:main_subject resource:politician . { ?l rdf:type ?u . VALUES ( ?u ) { ( ontology:collectable ) ( ontology:article ) } } } } . FILTER ( ?d < ?n ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q144
P366
Q1797813
USER
Which productive animal represents the main use of dog ?
(Q144,P366,c(Q1797813))
action filter_type
action find
entity Q144
relation P366
type Q1797813
['Q144', 'P366', {'concept': 'Q1797813'}]
SELECT DISTINCT ?t WHERE { resource:Q144 property:P366 ?t . ?t rdf:type ontology:Q1797813 }
dog
action filter_type
action find
entity dog
relation use
type productive animal
['dog', 'use', {'concept': 'productive animal'}]
SELECT DISTINCT ?t WHERE { resource:dog property:use ?t . ?t rdf:type ontology:productive_animal }
[]
productive animal
Q2827808
SYSTEM
service animal
Q2827808
(Q144,P366,c(Q1797813))
action filter_type
action find
entity Q144
relation P366
type Q1797813
The [ANSWER] represents the main use of dog
['Q144', 'P366', {'concept': 'Q1797813'}]
SELECT DISTINCT ?t WHERE { resource:Q144 property:P366 ?t . ?t rdf:type ontology:Q1797813 }
service animal
The service animal represents the main use of dog
service animal
action filter_type
action find
entity dog
relation use
type productive animal
['dog', 'use', {'concept': 'productive animal'}]
SELECT DISTINCT ?t WHERE { resource:dog property:use ?t . ?t rdf:type ontology:productive_animal }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q144
P417
Q502895
USER
What are the names of the patron saint of that name ?
(Q2827808,P417,c(Q502895))
action filter_type
action find
entity Q144
relation P417
type Q502895
['Q2827808', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q144 property:P417 ?h . ?h rdf:type ontology:Q502895 }
dog
action filter_type
action find
entity dog
relation patron saint
type common name
['service animal', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:dog property:patron_saint ?h . ?h rdf:type ontology:common_name }
[]
common name
Q159834 Q212850 Q152457
SYSTEM
Hubertus, Vitus, Saint Roch
Q159834 Q212850 Q152457
(Q2827808,P417,c(Q502895))
action filter_type
action find
entity Q144
relation P417
type Q502895
The names of the patron saint of that name are Saint [ANSWERS]
['Q2827808', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q144 property:P417 ?h . ?h rdf:type ontology:Q502895 }
Hubertus Vitus Saint Roch
The names of the patron saint of that name are Saint Hubertus, Vitus and Saint Roch
Hubertus Vitus Saint Roch
action filter_type
action find
entity dog
relation patron saint
type common name
['service animal', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:dog property:patron_saint ?h . ?h rdf:type ontology:common_name }
[]