Simple Question (Direct)
Simple Question
Q6957703
P106
Q12737077
USER
What do Nadia Hussain do for a living ?
(Q6957703,P106,c(Q12737077))
action filter_type
action find
entity Q6957703
relation P106
type Q12737077
['Q6957703', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q6957703 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
Nadia Hussain
action filter_type
action find
entity Nadia Hussain
relation occupation
type occupation
['Nadia Hussain', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Nadia_Hussain property:occupation ?m . ?m rdf:type ontology:occupation }
[]
occupation
Q27349 Q947873 Q4610556
SYSTEM
dentist, television presenter, model
Q4610556 Q27349 Q33999 Q947873
(Q6957703,P106,c(Q12737077))
action filter_type
action find
entity Q6957703
relation P106
type Q12737077
Nadia Hussain do for a living a [ANSWERS]
['Q6957703', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q6957703 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
model dentist actor television presenter
Nadia Hussain do for a living a dentist, television presenter and model
dentist television presenter model
action filter_type
action find
entity Nadia Hussain
relation occupation
type occupation
['Nadia Hussain', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Nadia_Hussain property:occupation ?m . ?m rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6957703
P21
Q290
USER
What is the sex of Nadia Hussain ?
(Q6957703,P21,c(Q290))
action filter_type
action find
entity Q6957703
relation P21
type Q290
['Q6957703', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q6957703 property:P21 ?e . ?e rdf:type ontology:Q290 }
Nadia Hussain
action filter_type
action find
entity Nadia Hussain
relation gender
type sex
['Nadia Hussain', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Nadia_Hussain property:gender ?e . ?e rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q6957703,P21,c(Q290))
action filter_type
action find
entity Q6957703
relation P21
type Q290
The sex of Nadia Hussain is the [ANSWER]
['Q6957703', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q6957703 property:P21 ?e . ?e rdf:type ontology:Q290 }
female
The sex of Nadia Hussain is the female
female
action filter_type
action find
entity Nadia Hussain
relation gender
type sex
['Nadia Hussain', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Nadia_Hussain property:gender ?e . ?e rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581072 Q234718
P21
Q502895
USER
Is Joanne Harris a that sex ?
(Q234718,P21,Q6581072)
action is_in
entity Q6581072
action find
entity Q234718
relation P21
['Q234718', 'P21', 'Q6581072']
ASK WHERE { resource:Q234718 property:P21 resource:Q6581072 }
female Joanne Harris
action is_in
entity female
action find
entity Joanne Harris
relation gender
['Joanne Harris', 'gender', 'female']
ASK WHERE { resource:Joanne_Harris property:gender resource:female }
[]
common name
SYSTEM
YES
(Q234718,P21,Q6581072)
action is_in
entity Q6581072
action find
entity Q234718
relation P21
[ANSWER]
['Q234718', 'P21', 'Q6581072']
ASK WHERE { resource:Q234718 property:P21 resource:Q6581072 }
Yes
action is_in
entity female
action find
entity Joanne Harris
relation gender
['Joanne Harris', 'gender', 'female']
ASK WHERE { resource:Joanne_Harris property:gender resource:female }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q6957703 Q6931970 Q843
P27
Q15617994
USER
Is Nadia Hussain a native of Muenster Independent School District and Pakistan ?
(Q6957703,P27,Q6931970) (Q6957703,P27,Q843)
action is_in
entity Q6957703
action intersection
action find_reverse
entity Q6931970
relation P27
action find_reverse
entity Q843
relation P27
['Q6957703', 'P27', 'Q6931970'] ['Q6957703', 'P27', 'Q843']
ASK WHERE { resource:Q6957703 property:P27 resource:Q843 . resource:Q6957703 property:P27 resource:Q6931970 }
Nadia Hussain Muenster Independent School District Pakistan
action is_in
entity Nadia Hussain
action intersection
action find_reverse
entity Muenster Independent School District
relation country of citizenship
action find_reverse
entity Pakistan
relation country of citizenship
['Nadia Hussain', 'country of citizenship', 'Muenster Independent School District'] ['Nadia Hussain', 'country of citizenship', 'Pakistan']
ASK WHERE { resource:Nadia_Hussain property:country_of_citizenship resource:Pakistan . resource:Nadia_Hussain property:country_of_citizenship resource:Muenster_Independent_School_District }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q6957703,P27,Q6931970) (Q6957703,P27,Q843)
action is_in
entity Q6957703
action intersection
action find_reverse
entity Q6931970
relation P27
action find_reverse
entity Q843
relation P27
[ANSWER]
['Q6957703', 'P27', 'Q6931970'] ['Q6957703', 'P27', 'Q843']
ASK WHERE { resource:Q6957703 property:P27 resource:Q843 . resource:Q6957703 property:P27 resource:Q6931970 }
NO and YES respectively
action is_in
entity Nadia Hussain
action intersection
action find_reverse
entity Muenster Independent School District
relation country of citizenship
action find_reverse
entity Pakistan
relation country of citizenship
['Nadia Hussain', 'country of citizenship', 'Muenster Independent School District'] ['Nadia Hussain', 'country of citizenship', 'Pakistan']
ASK WHERE { resource:Nadia_Hussain property:country_of_citizenship resource:Pakistan . resource:Nadia_Hussain property:country_of_citizenship resource:Muenster_Independent_School_District }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1930187
P921
Q12737077 Q838948 Q732577
USER
How many occupations were the main subjects of approximately the same number of works of art and publications 's work as journalist ?
(c(Q838948)|c(Q732577),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action count
action filter_multi_types
action find_reverse
entity Q1930187
relation P921
type Q838948
type Q732577
[[{'concept': 'Q838948'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?c ) WHERE { VALUES ( ?l ) { ( ontology:Q838948 ) ( ontology:Q732577 ) } . ?g rdf:type ?l } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { ?a property:P921 resource:Q1930187 . { { ?a rdf:type ontology:Q838948 } UNION { ?a rdf:type ontology:Q732577 } } } } . FILTER ( ?c = ?u ) }
journalist
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action count
action filter_multi_types
action find_reverse
entity journalist
relation main subject
type work of art
type publication
[[{'concept': 'work of art'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?c ) WHERE { VALUES ( ?l ) { ( ontology:work_of_art ) ( ontology:publication ) } . ?g rdf:type ?l } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { ?a property:main_subject resource:journalist . { { ?a rdf:type ontology:work_of_art } UNION { ?a rdf:type ontology:publication } } } } . FILTER ( ?c = ?u ) }
[]
occupation work of art publication
SYSTEM
96
Q172907 Q15637082 Q911554 Q9045502 Q2666591 Q39631 Q1124183 Q11631 Q5185440 Q765778 Q36180 Q774306 Q3809586 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q7358 Q131512 Q1708232 Q2094335 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q937857 Q618536 Q2961580 Q43845 Q14128148 Q814356 Q101539 Q168559 Q316070 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q510373 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q654291 Q14373094 Q483501 Q152002 Q1114448 Q16533 Q18220900 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q16003605 Q245068 Q838811 Q219477 Q1006696 Q639669 Q732358 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q182436 Q2259532 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q838948)|c(Q732577),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action count
action filter_multi_types
action find_reverse
entity Q1930187
relation P921
type Q838948
type Q732577
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?c ) WHERE { VALUES ( ?l ) { ( ontology:Q838948 ) ( ontology:Q732577 ) } . ?g rdf:type ?l } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { ?a property:P921 resource:Q1930187 . { { ?a rdf:type ontology:Q838948 } UNION { ?a rdf:type ontology:Q732577 } } } } . FILTER ( ?c = ?u ) }
praetor industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve physician lumberjack astronaut Crime scene cleanup organist writer surgeon Wikipedian in Residence Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives clown farmer medallist United States Attorney politician detective test pilot racing driver architect 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 association football player candidate taxi driver businessperson gridiron football player call girl flight attendant political commissar Fletcher Christian double agent member of the Lok Sabha soldier bishop member of parliament Lord High Steward violist entrepreneur Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor Deputy to the Dáil rugby league player artist pastor cartoonist judge Member of the South Australian House of Assembly nanny caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor elementary school student comedian peasant missionary United States federal judge musician Nomarch poet medical examiner police officer aviator statesman political scientist librarian cleric rag-and-bone man police officer baseball umpire middle school student Member of Parliament in the United Kingdom
96
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action count
action filter_multi_types
action find_reverse
entity journalist
relation main subject
type work of art
type publication
[[{'concept': 'work of art'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?c ) WHERE { VALUES ( ?l ) { ( ontology:work_of_art ) ( ontology:publication ) } . ?g rdf:type ?l } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { ?a property:main_subject resource:journalist . { { ?a rdf:type ontology:work_of_art } UNION { ?a rdf:type ontology:publication } } } } . FILTER ( ?c = ?u ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q639669
P921
Q12737077 Q838948 Q732577
USER
And what about musician?
(c(Q838948)|c(Q732577),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action count
action filter_multi_types
action find_reverse
entity Q639669
relation P921
type Q838948
type Q732577
[[{'concept': 'Q838948'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) ?v WHERE { ?m rdf:type ?o . VALUES ( ?o ) { ( ontology:Q732577 ) ( ontology:Q838948 ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) WHERE { ?l property:P921 resource:Q639669 . { { ?l rdf:type ontology:Q838948 } UNION { ?l rdf:type ontology:Q732577 } } } } . FILTER ( ?y = ?s ) }
musician
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action count
action filter_multi_types
action find_reverse
entity musician
relation main subject
type work of art
type publication
[[{'concept': 'work of art'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) ?v WHERE { ?m rdf:type ?o . VALUES ( ?o ) { ( ontology:publication ) ( ontology:work_of_art ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) WHERE { ?l property:main_subject resource:musician . { { ?l rdf:type ontology:work_of_art } UNION { ?l rdf:type ontology:publication } } } } . FILTER ( ?y = ?s ) }
[]
occupation work of art publication
SYSTEM
96
Q172907 Q15637082 Q911554 Q9045502 Q2666591 Q39631 Q1124183 Q11631 Q5185440 Q765778 Q36180 Q774306 Q3809586 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q7358 Q131512 Q1708232 Q2094335 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q937857 Q618536 Q2961580 Q43845 Q14128148 Q814356 Q101539 Q168559 Q316070 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q510373 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q654291 Q14373094 Q483501 Q152002 Q1114448 Q16533 Q18220900 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q16003605 Q245068 Q838811 Q219477 Q1006696 Q639669 Q732358 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q182436 Q2259532 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q838948)|c(Q732577),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action count
action filter_multi_types
action find_reverse
entity Q639669
relation P921
type Q838948
type Q732577
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) ?v WHERE { ?m rdf:type ?o . VALUES ( ?o ) { ( ontology:Q732577 ) ( ontology:Q838948 ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) WHERE { ?l property:P921 resource:Q639669 . { { ?l rdf:type ontology:Q838948 } UNION { ?l rdf:type ontology:Q732577 } } } } . FILTER ( ?y = ?s ) }
praetor industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve physician lumberjack astronaut Crime scene cleanup organist writer surgeon Wikipedian in Residence Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives clown farmer medallist United States Attorney politician detective test pilot racing driver architect 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 association football player candidate taxi driver businessperson gridiron football player call girl flight attendant political commissar Fletcher Christian double agent member of the Lok Sabha soldier bishop member of parliament Lord High Steward violist entrepreneur Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor Deputy to the Dáil rugby league player artist pastor cartoonist judge Member of the South Australian House of Assembly nanny caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor elementary school student comedian peasant missionary United States federal judge musician Nomarch poet medical examiner police officer aviator statesman political scientist librarian cleric rag-and-bone man police officer baseball umpire middle school student Member of Parliament in the United Kingdom
96
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action count
action filter_multi_types
action find_reverse
entity musician
relation main subject
type work of art
type publication
[[{'concept': 'work of art'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) ?v WHERE { ?m rdf:type ?o . VALUES ( ?o ) { ( ontology:publication ) ( ontology:work_of_art ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) WHERE { ?l property:main_subject resource:musician . { { ?l rdf:type ontology:work_of_art } UNION { ?l rdf:type ontology:publication } } } } . FILTER ( ?y = ?s ) }
[]