Simple Question (Direct)
Simple Question
Q3629427
P39
Q12737077
USER
Which occupation was a position occupied by Aubrey Beauclerk, 6th Duke of St Albans ?
(Q3629427,P39,c(Q12737077))
action filter_type
action find
entity Q3629427
relation P39
type Q12737077
['Q3629427', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q3629427 property:P39 ?r . ?r rdf:type ontology:Q12737077 }
Aubrey Beauclerk, 6th Duke of St Albans
action filter_type
action find
entity Aubrey Beauclerk, 6th Duke of St Albans
relation position held
type occupation
['Aubrey Beauclerk, 6th Duke of St Albans', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Aubrey_Beauclerk,_6th_Duke_of_St_Albans property:position_held ?r . ?r rdf:type ontology:occupation }
[]
occupation
Q18015642
SYSTEM
Member of Parliament in the Parliament of Great Britain
Q18015642
(Q3629427,P39,c(Q12737077))
action filter_type
action find
entity Q3629427
relation P39
type Q12737077
[ANSWER] was a position occupied by Aubrey Beauclerk, 6th Duke of St Albans
['Q3629427', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q3629427 property:P39 ?r . ?r rdf:type ontology:Q12737077 }
Member of Parliament in the Parliament of Great Britain
Member of Parliament in the Parliament of Great Britain was a position occupied by Aubrey Beauclerk, 6th Duke of St Albans
Member of Parliament in the Parliament of Great Britain
action filter_type
action find
entity Aubrey Beauclerk, 6th Duke of St Albans
relation position held
type occupation
['Aubrey Beauclerk, 6th Duke of St Albans', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Aubrey_Beauclerk,_6th_Duke_of_St_Albans property:position_held ?r . ?r rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3629427
P26
Q502895
USER
Which person is the life partner of Aubrey Beauclerk, 6th Duke of St Albans ?
(Q3629427,P26,c(Q502895))
action filter_type
action find
entity Q3629427
relation P26
type Q502895
['Q3629427', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q3629427 property:P26 ?u . ?u rdf:type ontology:Q502895 }
Aubrey Beauclerk, 6th Duke of St Albans
action filter_type
action find
entity Aubrey Beauclerk, 6th Duke of St Albans
relation spouse
type common name
['Aubrey Beauclerk, 6th Duke of St Albans', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Aubrey_Beauclerk,_6th_Duke_of_St_Albans property:spouse ?u . ?u rdf:type ontology:common_name }
[]
common name
Q15623958
SYSTEM
Louisa Grace Manners
Q15623958
(Q3629427,P26,c(Q502895))
action filter_type
action find
entity Q3629427
relation P26
type Q502895
The [ANSWER] is the life partner of Aubrey Beauclerk, 6th Duke of St Albans
['Q3629427', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q3629427 property:P26 ?u . ?u rdf:type ontology:Q502895 }
Louisa Grace Manners
The Louisa Grace Manners is the life partner of Aubrey Beauclerk, 6th Duke of St Albans
Louisa Grace Manners
action filter_type
action find
entity Aubrey Beauclerk, 6th Duke of St Albans
relation spouse
type common name
['Aubrey Beauclerk, 6th Duke of St Albans', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Aubrey_Beauclerk,_6th_Duke_of_St_Albans property:spouse ?u . ?u rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q983958
Q502895
USER
And what about Shabtai Kalmanovich?
(Q983958,P26,c(Q502895))
action filter_type
action find
entity Q983958
relation P26
type Q502895
['Q983958', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q983958 property:P26 ?i . ?i rdf:type ontology:Q502895 }
Shabtai Kalmanovich
action filter_type
action find
entity Shabtai Kalmanovich
relation spouse
type common name
['Shabtai Kalmanovich', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Shabtai_Kalmanovich property:spouse ?i . ?i rdf:type ontology:common_name }
[]
common name
Q4210152
SYSTEM
Anastasia von Kalmanovich
Q4210152
(Q983958,P26,c(Q502895))
action filter_type
action find
entity Q983958
relation P26
type Q502895
[ANSWER]
['Q983958', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q983958 property:P26 ?i . ?i rdf:type ontology:Q502895 }
Anastasia von Kalmanovich
Anastasia von Kalmanovich
action filter_type
action find
entity Shabtai Kalmanovich
relation spouse
type common name
['Shabtai Kalmanovich', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Shabtai_Kalmanovich property:spouse ?i . ?i rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q4210152 Q183945 Q36834
P106
Q12737077
USER
Does that person have a job as record producer and composer ?
(Q4210152,P106,Q183945) (Q4210152,P106,Q36834)
action is_in
entity Q4210152
action intersection
action find_reverse
entity Q183945
relation P106
action find_reverse
entity Q36834
relation P106
['Q4210152', 'P106', 'Q183945'] ['Q4210152', 'P106', 'Q36834']
ASK WHERE { resource:Q4210152 property:P106 resource:Q183945 . resource:Q4210152 property:P106 resource:Q36834 }
Anastasia von Kalmanovich record producer composer
action is_in
entity Anastasia von Kalmanovich
action intersection
action find_reverse
entity record producer
relation occupation
action find_reverse
entity composer
relation occupation
['Anastasia von Kalmanovich', 'occupation', 'record producer'] ['Anastasia von Kalmanovich', 'occupation', 'composer']
ASK WHERE { resource:Anastasia_von_Kalmanovich property:occupation resource:record_producer . resource:Anastasia_von_Kalmanovich property:occupation resource:composer }
[]
occupation
SYSTEM
YES
(Q4210152,P106,Q183945) (Q4210152,P106,Q36834)
action is_in
entity Q4210152
action intersection
action find_reverse
entity Q183945
relation P106
action find_reverse
entity Q36834
relation P106
[ANSWER]
['Q4210152', 'P106', 'Q183945'] ['Q4210152', 'P106', 'Q36834']
ASK WHERE { resource:Q4210152 property:P106 resource:Q183945 . resource:Q4210152 property:P106 resource:Q36834 }
Yes
action is_in
entity Anastasia von Kalmanovich
action intersection
action find_reverse
entity record producer
relation occupation
action find_reverse
entity composer
relation occupation
['Anastasia von Kalmanovich', 'occupation', 'record producer'] ['Anastasia von Kalmanovich', 'occupation', 'composer']
ASK WHERE { resource:Anastasia_von_Kalmanovich property:occupation resource:record_producer . resource:Anastasia_von_Kalmanovich property:occupation resource:composer }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q1001378
USER
How many cinematic techniques had their voice dubbing done by approximately 56 people ?
(c(Q1001378),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q1001378
type Q502895
value 56
[{'concept': 'Q1001378'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { FILTER ( ?j = 56 ) . { SELECT DISTINCT ?v ( COUNT ( ?e ) AS ?j ) WHERE { ?v rdf:type ontology:Q1001378 . ?e rdf:type ontology:Q502895 . ?v property:P725 ?e } GROUP BY ?v } }
action count
action approx
action find_tuple_counts
relation voice actor
type cinematic technique
type common name
value 56
[{'concept': 'cinematic technique'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { FILTER ( ?j = 56 ) . { SELECT DISTINCT ?v ( COUNT ( ?e ) AS ?j ) WHERE { ?v rdf:type ontology:cinematic_technique . ?e rdf:type ontology:common_name . ?v property:voice_actor ?e } GROUP BY ?v } }
[]
common name cinematic technique
SYSTEM
2
Q15270647 Q9321426
(c(Q1001378),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q1001378
type Q502895
value 56
[ANSWER]
[{'concept': 'Q1001378'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { FILTER ( ?j = 56 ) . { SELECT DISTINCT ?v ( COUNT ( ?e ) AS ?j ) WHERE { ?v rdf:type ontology:Q1001378 . ?e rdf:type ontology:Q502895 . ?v property:P725 ?e } GROUP BY ?v } }
Zootopia Finding Dory
2
action count
action approx
action find_tuple_counts
relation voice actor
type cinematic technique
type common name
value 56
[{'concept': 'cinematic technique'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { FILTER ( ?j = 56 ) . { SELECT DISTINCT ?v ( COUNT ( ?e ) AS ?j ) WHERE { ?v rdf:type ontology:cinematic_technique . ?e rdf:type ontology:common_name . ?v property:voice_actor ?e } GROUP BY ?v } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15623958
P25
Q502895
USER
Who was the mother of Louisa Grace Manners ?
(Q15623958,P25,c(Q502895))
action filter_type
action find
entity Q15623958
relation P25
type Q502895
['Q15623958', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . resource:Q15623958 property:P25 ?g }
Louisa Grace Manners
action filter_type
action find
entity Louisa Grace Manners
relation mother
type common name
['Louisa Grace Manners', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . resource:Louisa_Grace_Manners property:mother ?g }
[]
common name
Q15623761
SYSTEM
Louisa Tollemache, 7th Countess of Dysart
Q15623761
(Q15623958,P25,c(Q502895))
action filter_type
action find
entity Q15623958
relation P25
type Q502895
The mother of Louisa Grace Manners was Lady [ANSWER]
['Q15623958', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . resource:Q15623958 property:P25 ?g }
Louisa Tollemache, 7th Countess of Dysart
The mother of Louisa Grace Manners was Lady Louisa Tollemache, 7th Countess of Dysart
Louisa Tollemache, 7th Countess of Dysart
action filter_type
action find
entity Louisa Grace Manners
relation mother
type common name
['Louisa Grace Manners', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . resource:Louisa_Grace_Manners property:mother ?g }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q15637082
P921
Q12737077 Q386724 Q838948
USER
Which occupations were the main subjects of lesser number of works or works of art 's work than industrialist ?
(c(Q386724)|c(Q838948),P921,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q15637082
relation P921
type Q386724
type Q838948
[[{'concept': 'Q386724'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { FILTER ( ?m < ?g ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { ?t property:P921 resource:Q15637082 . { { ?t rdf:type ontology:Q386724 } UNION { ?t rdf:type ontology:Q838948 } } } } . { SELECT DISTINCT ?r ( COUNT ( ?z ) AS ?m ) WHERE { { ?z property:P921 ?r . ?r rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q386724 } UNION { ?z property:P921 ?r . ?r rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q838948 } } GROUP BY ?r } }
industrialist
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action count
action filter_multi_types
action find_reverse
entity industrialist
relation main subject
type work
type work of art
[[{'concept': 'work'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { FILTER ( ?m < ?g ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { ?t property:main_subject resource:industrialist . { { ?t rdf:type ontology:work } UNION { ?t rdf:type ontology:work_of_art } } } } . { SELECT DISTINCT ?r ( COUNT ( ?z ) AS ?m ) WHERE { { ?z property:main_subject ?r . ?r rdf:type ontology:occupation . ?z rdf:type ontology:work } UNION { ?z property:main_subject ?r . ?r rdf:type ontology:occupation . ?z rdf:type ontology:work_of_art } } GROUP BY ?r } }
[]
occupation work work of art
Q316070 Q131512 Q182436
SYSTEM
Fletcher Christian, farmer, librarian
Q172907 Q9045502 Q2666591 Q5185440 Q765778 Q774306 Q3809586 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q131512 Q1708232 Q2094335 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q937857 Q618536 Q43845 Q14128148 Q814356 Q168559 Q316070 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q510373 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q654291 Q14373094 Q483501 Q152002 Q1114448 Q16533 Q18220900 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q838811 Q219477 Q1006696 Q639669 Q732358 Q49757 Q17143199 Q384593 Q372436 Q1238570 Q182436 Q2259532 Q361593 Q1856798 Q16707842
(c(Q386724)|c(Q838948),P921,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q15637082
relation P921
type Q386724
type Q838948
[ANSWERS] were the main subjects of lesser number of works or works of art 's work than industrialist
[[{'concept': 'Q386724'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { FILTER ( ?m < ?g ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { ?t property:P921 resource:Q15637082 . { { ?t rdf:type ontology:Q386724 } UNION { ?t rdf:type ontology:Q838948 } } } } . { SELECT DISTINCT ?r ( COUNT ( ?z ) AS ?m ) WHERE { { ?z property:P921 ?r . ?r rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q386724 } UNION { ?z property:P921 ?r . ?r rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q838948 } } GROUP BY ?r } }
praetor member of the Parliament of Norway Chair of the Federal Reserve Crime scene cleanup organist surgeon Wikipedian in Residence Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives 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 classical philologist civil servant neuroscientist veterinarian street musician pottery member of the Virginia House of Delegates association football player candidate businessperson gridiron football player call girl 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 Deputy to the Dáil rugby league player artist pastor cartoonist judge Member of the South Australian House of Assembly caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor peasant missionary United States federal judge musician Nomarch poet medical examiner police officer statesman political scientist librarian cleric police officer baseball umpire Member of Parliament in the United Kingdom
Fletcher Christian, farmer and librarian were the main subjects of lesser number of works or works of art 's work than industrialist
Fletcher Christian farmer librarian
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action count
action filter_multi_types
action find_reverse
entity industrialist
relation main subject
type work
type work of art
[[{'concept': 'work'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { FILTER ( ?m < ?g ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { ?t property:main_subject resource:industrialist . { { ?t rdf:type ontology:work } UNION { ?t rdf:type ontology:work_of_art } } } } . { SELECT DISTINCT ?r ( COUNT ( ?z ) AS ?m ) WHERE { { ?z property:main_subject ?r . ?r rdf:type ontology:occupation . ?z rdf:type ontology:work } UNION { ?z property:main_subject ?r . ?r rdf:type ontology:occupation . ?z rdf:type ontology:work_of_art } } GROUP BY ?r } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q2095549
P921
Q12737077 Q386724 Q838948
USER
And what about aviator?
(c(Q386724)|c(Q838948),P921,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q2095549
relation P921
type Q386724
type Q838948
[[{'concept': 'Q386724'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { { { ?g rdf:type ontology:Q386724 } UNION { ?g rdf:type ontology:Q838948 } } . ?g property:P921 resource:Q2095549 } } . FILTER ( ?f < ?t ) . { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?f ) WHERE { ?i rdf:type ?y . VALUES ( ?y ) { ( ontology:Q386724 ) ( ontology:Q838948 ) } } GROUP BY ?c } }
aviator
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action count
action filter_multi_types
action find_reverse
entity aviator
relation main subject
type work
type work of art
[[{'concept': 'work'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { { { ?g rdf:type ontology:work } UNION { ?g rdf:type ontology:work_of_art } } . ?g property:main_subject resource:aviator } } . FILTER ( ?f < ?t ) . { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?f ) WHERE { ?i rdf:type ?y . VALUES ( ?y ) { ( ontology:work ) ( ontology:work_of_art ) } } GROUP BY ?c } }
[]
occupation work work of art
Q316070 Q131512 Q182436
SYSTEM
Fletcher Christian, farmer, librarian
Q172907 Q9045502 Q2666591 Q5185440 Q765778 Q774306 Q3809586 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q131512 Q1708232 Q2094335 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q937857 Q618536 Q43845 Q14128148 Q814356 Q168559 Q316070 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q510373 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q654291 Q14373094 Q483501 Q152002 Q1114448 Q16533 Q18220900 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q838811 Q219477 Q1006696 Q639669 Q732358 Q49757 Q17143199 Q384593 Q372436 Q1238570 Q182436 Q2259532 Q361593 Q1856798 Q16707842
(c(Q386724)|c(Q838948),P921,c(Q12737077))
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q2095549
relation P921
type Q386724
type Q838948
[ANSWERS]
[[{'concept': 'Q386724'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { { { ?g rdf:type ontology:Q386724 } UNION { ?g rdf:type ontology:Q838948 } } . ?g property:P921 resource:Q2095549 } } . FILTER ( ?f < ?t ) . { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?f ) WHERE { ?i rdf:type ?y . VALUES ( ?y ) { ( ontology:Q386724 ) ( ontology:Q838948 ) } } GROUP BY ?c } }
praetor member of the Parliament of Norway Chair of the Federal Reserve Crime scene cleanup organist surgeon Wikipedian in Residence Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives 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 classical philologist civil servant neuroscientist veterinarian street musician pottery member of the Virginia House of Delegates association football player candidate businessperson gridiron football player call girl 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 Deputy to the Dáil rugby league player artist pastor cartoonist judge Member of the South Australian House of Assembly caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor peasant missionary United States federal judge musician Nomarch poet medical examiner police officer statesman political scientist librarian cleric police officer baseball umpire Member of Parliament in the United Kingdom
Fletcher Christian farmer librarian
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action count
action filter_multi_types
action find_reverse
entity aviator
relation main subject
type work
type work of art
[[{'concept': 'work'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { { { ?g rdf:type ontology:work } UNION { ?g rdf:type ontology:work_of_art } } . ?g property:main_subject resource:aviator } } . FILTER ( ?f < ?t ) . { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?f ) WHERE { ?i rdf:type ?y . VALUES ( ?y ) { ( ontology:work ) ( ontology:work_of_art ) } } GROUP BY ?c } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q182436
P425
Q1047113
USER
What has that one as thier associated field of occupation ?
(Q182436,P425,c(Q1047113))
action filter_type
action find
entity Q182436
relation P425
type Q1047113
['Q182436', 'P425', {'concept': 'Q1047113'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q1047113 . resource:Q182436 property:P425 ?z }
librarian
action filter_type
action find
entity librarian
relation field of this occupation
type special field
['librarian', 'field of this occupation', {'concept': 'special field'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:special_field . resource:librarian property:field_of_this_occupation ?z }
[]
special field
Clarification for simple ques.
Q316070
SYSTEM
Did you mean Fletcher Christian ?
Q316070 Q131512 Q182436
(Q316070,P425,c(Q1047113)) (Q131512,P425,c(Q1047113)) (Q182436,P425,c(Q1047113))
[ANSWER]
['Q316070', 'P425', {'concept': 'Q1047113'}] ['Q131512', 'P425', {'concept': 'Q1047113'}] ['Q182436', 'P425', {'concept': 'Q1047113'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q1047113 . resource:Q182436 property:P425 ?z }
Fletcher Christian farmer librarian
Did you mean Fletcher Christian ?
Fletcher Christian
['Fletcher Christian', 'field of this occupation', {'concept': 'special field'}] ['farmer', 'field of this occupation', {'concept': 'special field'}] ['librarian', 'field of this occupation', {'concept': 'special field'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:special_field . resource:librarian property:field_of_this_occupation ?z }
[]
Simple Question (Coreferenced)
USER
No, I meant librarian. Could you tell me the answer for that?
(Q182436,P425,c(Q1047113))
Q182436
['Q182436', 'P425', {'concept': 'Q1047113'}]
['librarian', 'field of this occupation', {'concept': 'special field'}]
[]
Q199655
SYSTEM
library science
Q199655
(Q182436,P425,c(Q1047113))
action filter_type
action find
entity Q182436
relation P425
type Q1047113
[ANSWER] has that one as thier associated field of occupation
['Q182436', 'P425', {'concept': 'Q1047113'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q1047113 . resource:Q182436 property:P425 ?z }
library science
Library science has that one as thier associated field of occupation
library science
action filter_type
action find
entity librarian
relation field of this occupation
type special field
['librarian', 'field of this occupation', {'concept': 'special field'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:special_field . resource:librarian property:field_of_this_occupation ?z }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P361
Q11862829 Q1047113
USER
How many academic disciplines are atleast 1 special field a part of ?
(c(Q1047113),P361,c(Q11862829))
action count
action atleast
action find_reverse_tuple_counts
relation P361
type Q11862829
type Q1047113
value 1
[{'concept': 'Q1047113'}, 'P361', {'concept': 'Q11862829'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?h ) AS ?j ) WHERE { ?h rdf:type ontology:Q1047113 . ?v rdf:type ontology:Q11862829 . ?h property:P361 ?v } GROUP BY ?v } . FILTER ( ?j >= 1 ) }
action count
action atleast
action find_reverse_tuple_counts
relation part of
type academic discipline
type special field
value 1
[{'concept': 'special field'}, 'part of', {'concept': 'academic discipline'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?h ) AS ?j ) WHERE { ?h rdf:type ontology:special_field . ?v rdf:type ontology:academic_discipline . ?h property:part_of ?v } GROUP BY ?v } . FILTER ( ?j >= 1 ) }
[]
academic discipline special field
SYSTEM
2
Q11023 Q40634
(c(Q1047113),P361,c(Q11862829))
action count
action atleast
action find_reverse_tuple_counts
relation P361
type Q11862829
type Q1047113
value 1
[ANSWER]
[{'concept': 'Q1047113'}, 'P361', {'concept': 'Q11862829'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?h ) AS ?j ) WHERE { ?h rdf:type ontology:Q1047113 . ?v rdf:type ontology:Q11862829 . ?h property:P361 ?v } GROUP BY ?v } . FILTER ( ?j >= 1 ) }
engineering philology
2
action count
action atleast
action find_reverse_tuple_counts
relation part of
type academic discipline
type special field
value 1
[{'concept': 'special field'}, 'part of', {'concept': 'academic discipline'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?h ) AS ?j ) WHERE { ?h rdf:type ontology:special_field . ?v rdf:type ontology:academic_discipline . ?h property:part_of ?v } GROUP BY ?v } . FILTER ( ?j >= 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q316070
P20
Q56061
USER
Which administrative territory is the place of death of Fletcher Christian ?
(Q316070,P20,c(Q56061))
action filter_type
action find
entity Q316070
relation P20
type Q56061
['Q316070', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q316070 property:P20 ?s . ?s rdf:type ontology:Q56061 }
Fletcher Christian
action filter_type
action find
entity Fletcher Christian
relation place of death
type administrative territorial entity
['Fletcher Christian', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Fletcher_Christian property:place_of_death ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q48273
SYSTEM
Adamstown
Q48273
(Q316070,P20,c(Q56061))
action filter_type
action find
entity Q316070
relation P20
type Q56061
[ANSWER] is the place of death of Fletcher Christian
['Q316070', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q316070 property:P20 ?s . ?s rdf:type ontology:Q56061 }
Adamstown
Adamstown is the place of death of Fletcher Christian
Adamstown
action filter_type
action find
entity Fletcher Christian
relation place of death
type administrative territorial entity
['Fletcher Christian', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Fletcher_Christian property:place_of_death ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q48273 Q7832196 Q145
P17
Q15617994
USER
Is that administrative territory located in Tradeston and United Kingdom ?
(Q48273,P17,Q7832196) (Q48273,P17,Q145)
action is_in
entity Q48273
action intersection
action find_reverse
entity Q7832196
relation P17
action find_reverse
entity Q145
relation P17
['Q48273', 'P17', 'Q7832196'] ['Q48273', 'P17', 'Q145']
ASK WHERE { resource:Q48273 property:P17 resource:Q7832196 . resource:Q48273 property:P17 resource:Q145 }
Adamstown Tradeston United Kingdom
action is_in
entity Adamstown
action intersection
action find_reverse
entity Tradeston
relation country
action find_reverse
entity United Kingdom
relation country
['Adamstown', 'country', 'Tradeston'] ['Adamstown', 'country', 'United Kingdom']
ASK WHERE { resource:Adamstown property:country resource:Tradeston . resource:Adamstown property:country resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q48273,P17,Q7832196) (Q48273,P17,Q145)
action is_in
entity Q48273
action intersection
action find_reverse
entity Q7832196
relation P17
action find_reverse
entity Q145
relation P17
[ANSWER]
['Q48273', 'P17', 'Q7832196'] ['Q48273', 'P17', 'Q145']
ASK WHERE { resource:Q48273 property:P17 resource:Q7832196 . resource:Q48273 property:P17 resource:Q145 }
NO and YES respectively
action is_in
entity Adamstown
action intersection
action find_reverse
entity Tradeston
relation country
action find_reverse
entity United Kingdom
relation country
['Adamstown', 'country', 'Tradeston'] ['Adamstown', 'country', 'United Kingdom']
ASK WHERE { resource:Adamstown property:country resource:Tradeston . resource:Adamstown property:country resource:United_Kingdom }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q15623958
P21 P40
Q502895
USER
Which people have Louisa Grace Manners as a child and are a male ?
AND((c(Q502895),P40,Q15623958), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q15623958
relation P40
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q15623958'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?a WHERE { ?a property:P40 resource:Q15623958 . ?a property:P21 resource:Q6581097 . ?a rdf:type ontology:Q502895 }
male Louisa Grace Manners
action filter_type
action intersection
action find_reverse
entity Louisa Grace Manners
relation child
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Louisa Grace Manners'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?a WHERE { ?a property:child resource:Louisa_Grace_Manners . ?a property:gender resource:male . ?a rdf:type ontology:common_name }
[]
common name
Q15623760
SYSTEM
John Manners
Q15623760
AND((c(Q502895),P40,Q15623958), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q15623958
relation P40
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] have Louisa Grace Manners as a child and are a male
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q15623958'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?a WHERE { ?a property:P40 resource:Q15623958 . ?a property:P21 resource:Q6581097 . ?a rdf:type ontology:Q502895 }
John Manners
John Manners have Louisa Grace Manners as a child and are a male
John Manners
action filter_type
action intersection
action find_reverse
entity Louisa Grace Manners
relation child
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Louisa Grace Manners'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?a WHERE { ?a property:child resource:Louisa_Grace_Manners . ?a property:gender resource:male . ?a rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q15623760 Q17362265
P22
Q502895
USER
Does Stanisław Mielnicki have that one as dad ?
(Q17362265,P22,Q15623760)
action is_in
entity Q17362265
action find
entity Q15623760
relation P22
['Q17362265', 'P22', 'Q15623760']
ASK WHERE { resource:Q15623760 property:P22 resource:Q17362265 }
John Manners Stanisław Mielnicki
action is_in
entity Stanisław Mielnicki
action find
entity John Manners
relation father
['Stanisław Mielnicki', 'father', 'John Manners']
ASK WHERE { resource:John_Manners property:father resource:Stanisław_Mielnicki }
[]
common name
SYSTEM
NO
(Q17362265,P22,Q15623760)
action is_in
entity Q17362265
action find
entity Q15623760
relation P22
[ANSWER]
['Q17362265', 'P22', 'Q15623760']
ASK WHERE { resource:Q15623760 property:P22 resource:Q17362265 }
No
action is_in
entity Stanisław Mielnicki
action find
entity John Manners
relation father
['Stanisław Mielnicki', 'father', 'John Manners']
ASK WHERE { resource:John_Manners property:father resource:Stanisław_Mielnicki }
[]